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

[spirv] Add support for Index decoration

Needed for dual-source blending
This commit is contained in:
Philip Rebohle 2018-11-16 19:47:06 +01:00
parent 5aad615aef
commit 3e3c31f365
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 14 additions and 0 deletions

View File

@ -419,6 +419,16 @@ namespace dxvk {
}
void SpirvModule::decorateIndex(
uint32_t object,
uint32_t index) {
m_annotations.putIns (spv::OpDecorate, 4);
m_annotations.putWord (object);
m_annotations.putWord (spv::DecorationIndex);
m_annotations.putInt32(index);
}
void SpirvModule::decorateLocation(
uint32_t object,
uint32_t location) {

View File

@ -189,6 +189,10 @@ namespace dxvk {
uint32_t object,
uint32_t set);
void decorateIndex(
uint32_t object,
uint32_t index);
void decorateLocation(
uint32_t object,
uint32_t location);