llvm / wg-hlsl

HLSL Working Group documentation and task tracking.
Other
11 stars 13 forks source link

[0002] RootSignatures - should validate rules about typed resources as root signatures #101

Open damyanp opened 2 weeks ago

damyanp commented 2 weeks ago

If we have RWBuffer<float4>, then this can't be bound to a register associated with a UAV root parameter:

D3D12 ERROR: ID3D12Device::CreateComputePipelineState: Root Signature doesn't match Compute Shader: A Shader is declaring a typed UAV using a register mapped to a root descriptor UAV (ShaderRegister=0, RegisterSpace=0). SRV or UAV root descriptors can only be Raw or Structured buffers. [ STATE_CREATION ERROR #882: CREATECOMPUTEPIPELINESTATE_CS_ROOT_SIGNATURE_MISMATCH]