diff --git a/src/dxbc/dxbc_decoder.h b/src/dxbc/dxbc_decoder.h index 45954027..9f5b2fc1 100644 --- a/src/dxbc/dxbc_decoder.h +++ b/src/dxbc/dxbc_decoder.h @@ -327,6 +327,10 @@ namespace dxvk { DxbcUavFlags uavFlags() const { return DxbcUavFlags(bit::extract(m_bits, 16, 16)); } + + DxbcConstantBufferAccessType accessType() const { + return DxbcConstantBufferAccessType(bit::extract(m_bits, 11, 11)); + } uint32_t controlPointCount() const { return bit::extract(m_bits, 11, 16); diff --git a/src/dxbc/dxbc_enums.h b/src/dxbc/dxbc_enums.h index 5ecd10bd..214780d0 100644 --- a/src/dxbc/dxbc_enums.h +++ b/src/dxbc/dxbc_enums.h @@ -625,5 +625,11 @@ namespace dxvk { Raw = 1, Structured = 2, }; + + + enum class DxbcConstantBufferAccessType : uint32_t { + StaticallyIndexed = 0, + DynamicallyIndexed = 1, + }; } \ No newline at end of file