Questions tagged [direct3d12]

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.

79 questions
1
vote
1 answer

D3D12 Pipeline State Object use clarification

I'm working on my own D3D12 wrapper, and I'm in the beginning 'schema' phase. I understand the purpose of the PSO in a very simple rendering pipeline, but say I've multiple objects, meshes, models, whatever terminology works best, and I would like…
Gijahara
  • 73
  • 1
  • 9
1
vote
1 answer

Should I reuse the same constant buffer in multiple shader stages?

For example, instead of: VertexShader.hlsl cbuffer VSPerInstance : register(b0){ matrix World, View, Projection; }; PixelShader.hlsl cbuffer PSPerInstance : register(b0){ float4 AmbientColor; float4 DiffuseColor; float4…
Sol Sol
  • 25
  • 5
1
vote
1 answer

Getting the Address of a function that can only be called

I already asked a Question but I think thats very special and will not get a concrete answer. Im trying to give a simpler Explanation of what i need help with. The Issue is that d3d12::pCommandList->CopyTextureRegion; doesnt work because…
user19479573
1
vote
1 answer

DirectX 12 Ultimate graphics sample generates a D3D12 "CBV Invalid Resource" error

Presently I'm working on updating a Windows 11 DX12 desktop app to take advantage of the technologies introduced by DX12 Ultimate (i.e. mesh shaders, VRS & DXR). All the official samples for Ultimate compile and run on my machine (Core i9/RTX3070…
1
vote
4 answers

Get parent COM object from a child COM object

The ID3D12GraphicsCommandList interface inherits from ID3D12CommandList. So, if I have a ID3D12GraphicsCommandList object, how do I get get the corresponding ID3D12CommandList object? Will typecasting work? ID3D12GraphicsCommandList *gcl =…
1
vote
0 answers

Direct3D 12 Hello, World! sample issue. Window launches but no graphics

I am going through the following beginners tutorial: https://learn.microsoft.com/en-us/samples/microsoft/directx-graphics-samples/d3d12-hello-world-samples-win32 When I build, then run the project I get a window with the correct title of the project…
n1n3fly
  • 11
  • 2
1
vote
1 answer

D3D12 ERROR: GPU-BASED VALIDATION: Draw, Uninitialized root argument accessed. Shader Stage: PIXEL, Root Parameter Index: [1]

This took me a while to figure as a D3D12 newbie and I did not find anything searching the web. Shaders compiled fine, all resources acquired but the output kept being black. After setting debug level to max and enabled GPU validation I got the…
JKrahmann
  • 31
  • 3
1
vote
0 answers

How to convert single texture from RGBA to NV12 using Direct3D 12?

There is an useless D3D12 sample code project on github https://github.com/microsoft/D3D12TranslationLayer The step stuck at CreateVideoProcessor ID3D12Device1* device1= {}; ID3D12VideoDevice* videodevice = {}; ID3D12VideoProcessor* VideoProcessor…
Sidney Niu
  • 31
  • 4
1
vote
1 answer

D3D12 Feature Level 12_2/Ultimate other features

DirectX 12 Ultimate/Feature Level 12_2 is mainly about DXR Tier 1.1, Mesh Shader, Sampler Feedback and Variable Rate Shading. But how is the situation with other features like Map Default Buffer, Shader Specified Stencil Reference Value or higher…
L1-Cache
  • 91
  • 6
1
vote
1 answer

What is ID3D12GraphicsCommandList::DiscardResource?

What exactly should I expect to happen when using DiscardResource? What's the difference between discard and destroying/deleting a resource. When is a good time/use-case to discard a resource? Unfortunately Microsoft doesn't seem to say much about…
Tony Clifton
  • 467
  • 3
  • 10
1
vote
0 answers

How to check if ID3D12GraphicsCommandList has been closed?

I'm learning DirectX12 and writing some utility classes to encapsulate functionality. Right now I'm working on mechanism for pooling CommandLists. The pool assumes all command lists are closed. I wanted to validate that during inserting to the pool,…
Maciej Dziuban
  • 474
  • 3
  • 21
1
vote
0 answers

GNU G++ stops compiling after including D3D12 include paths (Using VSCode)

I am trying to get VSCode to compile DS3 Code, I have heard I needed these four include paths for D3D files to compile (to include d3d12.h): C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\shared C:\Program Files (x86)\Windows…
1
vote
1 answer

Direct x 12 image flickering on Intel graphic hard

I have a weird issue only happening on my Intel HD Graphics 530 When rendering an image, some pixels color randomly change. See the following image: Bug For the problematic pixels, the graphics debugger show that the color outputted from the…
Cloyz
  • 93
  • 2
  • 11
1
vote
1 answer

Is Direct3D 12 supported on Windows 10 Mobile (phone)?

Is Direct3D 12 supported on Windows 10 Mobile (phone)? I've recently upgrade my personal project to Direct3D 12 under the impression that it runs on all versions of Windows 10 Universal Apps. My phone ran my old Direct3D 11.1 code just fine, but…
1
vote
1 answer

c++, directx 12: Color Picking Questions

I'd like to implement color picking in DirectX 12. So basically what I am trying to do is render to two render targets simultaneously. The first render target should contain the normal rendering, while the second should contain the objectID. To…
0xfeedbacc
  • 301
  • 2
  • 9