Questions tagged [directx-12]

DirectX 12 introduces the next version of Direct3D, the 3D graphics API at the heart of DirectX. This version of Direct3D is faster and more efficient than any previous version. Direct3D 12 enables richer scenes, more objects, more complex effects, and full utilization of modern GPU hardware. It is supported on Windows 10 and Xbox One.

347 questions
1
vote
1 answer

Using a D3D11 texture in a D3D12 application

My application is written in D3D12. We have a VR plugin that provide a D3D11 shared texture. Can a D3D11 texture be "converted" into a D3D12 texture? The only solution I found so far is to write D3D11onD3D12 code that would make use of that texture…
Octo
  • 543
  • 1
  • 5
  • 16
1
vote
1 answer

Do Views need to be deallocated in D3D12? (Will they cause a leak if you don't?)

I am learning DirectX12 from this guide here and one thing that has me confused is when they are resizing the depth buffer. This is how they do it below: void Tutorial2::ResizeDepthBuffer(int width, int height) { if (m_ContentLoaded) { …
yosmo78
  • 489
  • 4
  • 13
1
vote
1 answer

How Can I implement MSAA on DX12?

I Searched many other questions and samples, but I still can't understand what I must do. What I know about this process is Create a Render Target for msaa. - Different from SwapChain's Backbuffer. Draw everything (like meshes) on msaa render…
1
vote
2 answers

DirectX 12 - Root Descriptor not working properly

In my test application, I passed the model, view and projection matrices as 32 bit constants to the shaders. Now I wanted to switch to root descriptors in order to reduce my root signature size. I want to pass two constant buffers to shader. The…
Erik So
  • 57
  • 8
1
vote
1 answer

D3DCompileFromFile function throwing exception and not working?

I recently tried to pick up DirectX12 and already ran into my first issue. The D3DCompileFromFile function just doesn't seem to work. I am using it as follows: ComPtr
Adam
  • 41
  • 4
1
vote
1 answer

A Fence Per Command Allocator or just one fence DirectX12

So I am attempting to dive into DirectX12 synchronization. And I am having a hard time trying to understand why some programs need multiple fences for GPU/CPU synchronization, instead of just one. In this guide, they have only a single fence and…
yosmo78
  • 489
  • 4
  • 13
1
vote
1 answer

Clip Space in OpenGL and DirectX 12

I am implementing a custom mathematics library to create model, view and projection matrices in OpenGL and DirectX. I am doing this, to improve my understanding in the mathematics behind 3D applications. At first I took a look at right-handed and…
Erik So
  • 57
  • 8
1
vote
2 answers

model dont have tangent or binormal value fbxsdk directx

I'm using a translator, so please understand that I may be inexperienced. I'm currently trying to create a 3d model in dx12 using fbxsdk. There is no problem with the modeling used in the current example code, but now the moment you use the 3d model…
이동수
  • 31
  • 2
1
vote
1 answer

GPU Memory Management in OpenGL and DirectX 12

I am currently improving my knowledge in OpenGL and DirectX 12 in order to create graphics applications with both APIs. I studied several tutorials but I still do not completely understand, how the memory is managed on the GPU side. In OpenGL (my…
Erik So
  • 57
  • 8
1
vote
1 answer

Getting Useful Information from the DirectX12 Debug Layer

I am developing my first DirectX 12 C++ application in Visual Studio Community 2019 and I am having trouble getting useful information from the debug logs output in the Visual Studio Output window. My issue is I that am trying to create a swap chain…
Skye Lumine
  • 101
  • 5
1
vote
0 answers

How to render Direct2D rectangle over Directx12 3D scene?

I was wondering if anyone would be able to provide some explanation (code snippets would be great) as to how I would render a Direct2D rectangle over a directx12 3d scene that I have. Would I need to render to the dx12 back buffer somehow? If so..…
1
vote
0 answers

DirectX12 Compute Shader does nothing?

I am trying to write the simplest possible compute shader in DirectX12 so that I can have a starting point for a real project. However, it seems like no matter what I do I am unable to get my GPU to process "1+1" and see the output. As there is…
boof
  • 339
  • 1
  • 3
  • 13
1
vote
1 answer

DirectXTK 3D audio uses only left channel

I've decided to try the DirectXTK12 audio and it's working fine except for the 3D sound. I'm following the guide from wiki but the sound is always in the left speaker no matter how I position the listener/emitter. What's wrong? My code looks like…
Flone
  • 187
  • 1
  • 3
  • 11
1
vote
2 answers

Finding DirectX12 libraries with CMake and MinGW

I am trying to use CMake to find DirectX 12 and link it against an executable. What I have so far works when compiling with MSVC, but fails when compiling with GCC: Could NOT find D3D12 (missing: D3D12_LIBRARIES). I am using a slightly altered…
inconstxpr
  • 23
  • 5
1
vote
0 answers

How to render YUV data by using DirectX11 or DirectX12

I have a C++ dll project where YUV data has been processed by using directX9 in an IDirect3DSurface9. Then this surface has been passed to the WPF side by a callback function to render it from WPF side by using D3DImage. But rendering FPS is very…
yeasir007
  • 2,110
  • 2
  • 28
  • 43