DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

Need to report error when use constant which has offset bigger than root constant size.

Open python3kgae opened this issue 5 years ago • 0 comments

cbuffer cb : register(b0) { float a; float b; }

[RootSignature("RootFlags(0), RootConstants(b0, num32BitConstants = 1)")] float main() : SV_Target { return b; }

Root constant size is 1, but b has offset 1 which is out of bound.

python3kgae avatar Mar 25 '20 22:03 python3kgae