mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 04:08:52 +01:00
[spirv] Add support for Index decoration
Needed for dual-source blending
This commit is contained in:
parent
5aad615aef
commit
3e3c31f365
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user