![]() It has been compiled to Shader Model 5.0 by changing its compile settings in Visual Studio 11. The pixel shader is simply supposed to return blue pixels. cso file: ID3D11VertexShader* PS ĭ3DReadFileToBlob(L"PixelShader.cso", &PS_Buffer) ĭ3d11Device->CreatePixelShader(PS_Buffer->GetBufferPointer(), PS_Buffer->GetBufferSize(), NULL, &PS) Here is the code I have to create a Pixel Shader from a precompiled. cso files of SM 5.0 into my program to create a shader. hlsl files in my project pre-/ offline/ buildtime compiled for my C++ DirectX 11 project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |