Questions tagged [directx-11]

DirectX 11 is the 11th version of Microsoft's DirectX API, which is used to develop and handle tasks related to Multimedia, such as game programming, 3d visualizations and video on Microsoft platforms. DirectX 11 runs on Windows Vista, Windows 7, Windows 8, Windows 10, and Xbox One.

DirectX 11 is the 11th version of Microsoft's DirectX API (), which is used to develop and handle tasks related to Multimedia, such as game programming, 3d visualizations and video on Microsoft platforms. DirectX 11 runs on Windows Vista (), Windows 7 (), Windows 8 (), Windows 10 (), and Xbox One ().

1933 questions
5
votes
1 answer

Compute shaders, where do they fit in the pipeline?

I have been at this all day and am starting to give up on it. I can't find a lot of information on compute shaders. Best source was "Practical Rendering and Computation with Direct3D 11" and unfortunately it was not too much help. It helped me…
Prodigga
  • 1,457
  • 1
  • 22
  • 37
5
votes
1 answer

DirectX - How does the VertexBuffer work?

I'm learning DirectX right now, I read alot about VertexBuffer. Since you cant learn from programming by just reading, I'm making a small Engine with DX11 (Well my question isn't really version dependent) As far as I understood in a VertexBuffer I…
Aurus
  • 705
  • 9
  • 21
5
votes
2 answers

DirectX 11 Swap Chain with 7 back buffers

I have a propietary media player that runs on Windows 8 in desktop mode. Runtime DirectX version is 11, but native graphics driver support is for DirectX 9. On some computers with the exact same setup, I see that the actual swap chain's back buffers…
rkellerm
  • 5,362
  • 8
  • 58
  • 95
4
votes
1 answer

IDXGISwapChain::Present causes a driver crash and a device removal

I am designing a game engine that makes use of the DirectX 11 API, in particular, the use of deferred contexts. The basic idea is to have each and every device state given its own deferred context, and then, after all geometry has been rendered, to…
Alex
  • 1,794
  • 9
  • 20
4
votes
2 answers

DirectX11 set shader constants

Having XNA background, I try to create a simple DirectX11 application. Now I try to figure out how to set shader constants such as projection matrix etc. I'm reading about constant-buffers - but is there no simple way to set some constants before…
Mat
  • 4,281
  • 9
  • 44
  • 66
4
votes
1 answer

How do I Translate mouse movement to Camera Panning

I use DirectX3D 11 to wirte an application and my Camera target vector is determined by the variables xdelta, ydelta, and zdelta. I have to PAN my view in the XY as I move my mouse across the screen with the RMB & LMB pressed. I figured that I need…
JeffS
  • 327
  • 7
  • 17
4
votes
1 answer

Why is D3D10SDKLayers.dll loaded during my DX11 game?

SEE EDIT UPDATES BELOW. Original question has been modified! I have a working window that uses a DX11 device. My problem comes along when I try to go fullscreen using Alt+Enter. If the window is not focused, i get a debug output that says:…
Darkhydro
  • 1,992
  • 4
  • 24
  • 43
4
votes
1 answer

Why BGRA instead of RGBA?

So, I was developing a game engine in C++ and DirectX 11, and I noticed that people usually uses BGRA instead of RGBA as SwapChain format. Why people does that? And why is 32 bit color instead 256 bit color?
Preciado
  • 53
  • 6
4
votes
0 answers

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 devmode). The rendered geometry doesn't show up…
Invor
  • 41
  • 2
4
votes
1 answer

How to use Direct3D11CaptureFramePool in NET 5 / 6

Alternative title: WinRT support for IDirect3DDevice I've an application that uses the "Direct3D11CaptureFramePool" class to capture the content of an application window as shown here (link) I would like to port this example to NET 6.0 How to port…
Manuel Amstutz
  • 1,311
  • 13
  • 33
4
votes
0 answers

What is the effect of IDXGIDevice::SetGPUThreadPriority?

The documentation for IDXGIDevice::SetGPUThreadPriority states To use the SetGPUThreadPriority method, you should have a comprehensive understanding of GPU scheduling. You should profile your application to ensure that it behaves as intended. If…
Elad Maimoni
  • 3,703
  • 3
  • 20
  • 37
4
votes
2 answers

how can I update dynamic vertex buffer fastly?

I'm trying to make a simple 3D modeling tool. there is some work to move a vertex( or vertices ) for transform the model. I used dynamic vertex buffer because thought it needs much update. but performance is too low in high polygon model even though…
4
votes
1 answer

Copy ffmpeg d3dva texture resource to shared rendering texture

I'm using ffmpeg to decode video via d3dva based on this example https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/hw_decode.c. I'm able to succesfully decode video. What I need to do next is to render decoded NV12 frame. I have created…
Teamol
  • 733
  • 1
  • 14
  • 42
4
votes
2 answers

Is there a good DirectX (3D) DirectWrite tutorial somewhere?

I'm refactoring some of my directx10 code to directx11 and trying to figure out DIrectWrite for my text functions. From MSDN, I hear that they're switching everything to this and that directwrite is now included with direct3d. But, eh - I can't find…
Darkenor
  • 4,349
  • 8
  • 40
  • 67
4
votes
1 answer

How to fix this multisampling error when creating a swapchain?

I'm getting an DXGI ERROR about multisampling when creating a swapchain and need some help after hours of trying to resolve this error. I'm setting up a simple window for learning Direct3D 11. I have tried changing the SampleDesc.Count and…
Hantor
  • 53
  • 1
  • 4