Questions Tagged [Directx]

DirectX is a collection of APIs for handling tasks related to multimedia, especially 3D graphics and game programming and video, on Microsoft platforms.

5,740 questions
4 votes
0 answers
114 views

Tessellation shaders not working with UWP DirectX 11 on Xbox Series X|S

I ported a DirectX 11 application to UWP to deploy it on Xbox Series X|S and hardware tessellation shaders are not working when running the app on Xbox (tested on retail Xbox Series X and Series S in ...
  • 41
0 votes
0 answers
37 views

C++ - Catch VSync start event [closed]

I am currently developing an app which spans over 2 monitors for Windows. For my application I need VSync enabled and there lies the problem. Sometimes one monitor seems to get the VSync event a ...
  • 13
3 votes
0 answers
63 views

Enforce use of independent flip mode with DXGI FLIP SwapChain

I currently face a problem with DXGI Swapchains (DirectX 11). My C++ application shows (live) video and my goal is to minimize latency. I have no user input to process. In order to decrease latency I ...
-1 votes
0 answers
42 views

How to pass IntPtr (holding an image data in C#) to C++ and use this IntPtr to create an IDirect3D11Resource in C++?

I've an IntPtr of an image in C#. How can I send and use this Intptr and create an ID3D11Resource equivalent in c++? What I'm trying to achieve? I'm getting frame as Intptr and trying to render the ...
0 votes
1 answer
29 views

C++ DirectX VS2022 Template. Problem with shaders

I am trying to add shaders to basic template from vs2022. But there is a error when I am trying to compile. default function looks like this: BasicAppasdMain::BasicAppasdMain(const std::shared_ptr<...
0 votes
0 answers
14 views

Gaussian blur based on depth that preserves energy

I want to blur my image with a gaussian kernel to help with anti-aliasing (I have MSAA and FXAA, but upping the sample rate too high is way too costly on the frame rate since I am rendering about 20-...
1 vote
0 answers
34 views

Is every buffer in GPU memory always a minimal alignment of 64 KB in DirectX12 for all different allocation methods?

So I am trying to save some bytes in my VRAM usage and one thing I have seen is that every PlacedResource for a buffer (vertex or index or any other kind of resource buffer) must be 64 KB aligned (...
1 vote
0 answers
40 views

What is a quick way to scale down an image using SharpDX hardware acceleration in C#?

I'm trying to scale down large images (~ 23k x 1k) to be displayed in winforms. The current way I'm scaling the images is taking too long, which is why I want to use the GPU through SharpDX (C#) to ...
0 votes
0 answers
38 views

Replace color by area and by color with Directdraw

I need to implement a sort of "select box" on this vertical menu: In short I like to add the possibility to navigate the vertical menu via arrow keys. I have already hook the game, but this ...
0 votes
1 answer
33 views

C# Matrix4x4 equivalent of DirectX::XMMatrixPerspectiveLH

I was trying to port some c++ code to C#, everything works except the perspective. In c++ the code looks like this, which worked without distortion. DirectX::XMMatrixTranspose( DirectX:...
2 votes
1 answer
35 views

D3D12 CreateHeap alignment, Does MSDN use 1024 or 1000 for its definition of KB

I am trying to use CreateHeap and PlacedResources in DirectX12. However for CreateHeap it requires a D3D12_HEAP_DESC where it says "applications should pass SizeInBytes (a field of the ...
2 votes
2 answers
53 views

Binding OpenCL buffer to DirectX buffer

I'm trying to find a way to bind an OpenCL buffer into DirectX buffer. I did manage to find the inverse way of doing so using eh OpenGL Api function: clCreateFromGLBuffer, but failed on finding the ...
2 votes
1 answer
29 views

c# SharpDX ScaleEffect Interpolation question

i've been using this wonderful library for low impact screen recording software however im at a point where i need to use a DirectX Scale Effect to scale the image down with anisotropic filtering. I ...
1 vote
0 answers
21 views

How to hook d3d9 and call my detour function?

I'm trying to hook d3d9 EndScene in a game: Tibia otclient. What I want to do is translate ingame XYZ coordinates to screen XY coordinates. The typical WorldToScreen function. Here I share the code I'...
  • 311
-1 votes
1 answer
53 views

Getting library dependencies for DirectX sample applications

I am reading a book on directx and wish to run the books sample applications. The instructions to do this are found here:

15 30 50 per page
1
2 3 4 5
…
383
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest