Which one to choose? The new compiler, called DirectX Shader Compiler, is more modern, based on LLVM/Clang, and open source. There are currently two shader compilers available, both from Microsoft, each outputting different binary format: We author these in high-level language called HLSL and compile them before passing to the DirectX API while creating pipeline state objects ( ID3D12Device::CreateGraphicsPipelineState). If we write a game or other graphics application using DX12, we also need to write some shaders.
0 Comments
Leave a Reply. |