I am trying to CreateComputePipelineState for a raytracing project. I have the shader byte codes compiled with proper arguments. But I get the following error.
D3D12 ERROR: ID3D12Device::CreateComputeShader: Encoded Compute Shader size doesn't match specified size. [ STATE_CREATION ERROR #322: CREATECOMPUTESHADER_INVALIDSHADERBYTECODE]
And the compiled size is indeed bigger than the source file but I have no idea why. Any suggestions? Thanks in advance