mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[spirv] Add generic memberDecorate
This commit is contained in:
parent
1b8c54eb84
commit
80808d743b
@ -524,6 +524,17 @@ namespace dxvk {
|
||||
m_annotations.putWord (spv::DecorationBuiltIn);
|
||||
m_annotations.putWord (builtIn);
|
||||
}
|
||||
|
||||
|
||||
void SpirvModule::memberDecorate(
|
||||
uint32_t structId,
|
||||
uint32_t memberId,
|
||||
spv::Decoration decoration) {
|
||||
m_annotations.putIns (spv::OpMemberDecorate, 4);
|
||||
m_annotations.putWord (structId);
|
||||
m_annotations.putWord (memberId);
|
||||
m_annotations.putWord (decoration);
|
||||
}
|
||||
|
||||
|
||||
void SpirvModule::memberDecorateOffset(
|
||||
|
@ -224,6 +224,11 @@ namespace dxvk {
|
||||
uint32_t structId,
|
||||
uint32_t memberId,
|
||||
spv::BuiltIn builtIn);
|
||||
|
||||
void memberDecorate(
|
||||
uint32_t structId,
|
||||
uint32_t memberId,
|
||||
spv::Decoration decoration);
|
||||
|
||||
void memberDecorateOffset(
|
||||
uint32_t structId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user