![](https://uploads.gamedev.net/forums/monthly_2022_10/34dfa03556284f01a4746556613d9f3b.image.png)
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