1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 04:24:11 +01:00

[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

@ -328,6 +328,10 @@ namespace dxvk {
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

@ -626,4 +626,10 @@ namespace dxvk {
Structured = 2,
};
enum class DxbcConstantBufferAccessType : uint32_t {
StaticallyIndexed = 0,
DynamicallyIndexed = 1,
};
}