[D3D12] Refactor system and bool/loop constants into separate descriptor ranges

This commit is contained in:
Triang3l
2018-10-02 16:34:22 +03:00
parent 2588aab89d
commit 9e17bbf016
3 changed files with 74 additions and 46 deletions

View File

@@ -28,12 +28,9 @@ class DxbcShaderTranslator : public ShaderTranslator {
// Constant buffer bindings in space 0.
enum class CbufferRegister {
// The D3D12 command processor has system and bool/loop constants in a
// single descriptor range.
// TODO(Triang3l): Make them root CBVs for speed.
kSystemConstants,
kBoolLoopConstants,
kFloatConstants,
kBoolLoopConstants,
kFetchConstants,
};