[dxbc] Parse dynamically indexed flag for constant buffers

This commit is contained in:
Philip Rebohle 2019-10-28 14:15:44 +01:00
parent 7db98a1aa4
commit 68760f5b20
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 10 additions and 0 deletions

View File

@ -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);

View File

@ -625,5 +625,11 @@ namespace dxvk {
Raw = 1,
Structured = 2,
};
enum class DxbcConstantBufferAccessType : uint32_t {
StaticallyIndexed = 0,
DynamicallyIndexed = 1,
};
}