mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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 (spv::DecorationBuiltIn);
|
||||||
m_annotations.putWord (builtIn);
|
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(
|
void SpirvModule::memberDecorateOffset(
|
||||||
|
@ -224,6 +224,11 @@ namespace dxvk {
|
|||||||
uint32_t structId,
|
uint32_t structId,
|
||||||
uint32_t memberId,
|
uint32_t memberId,
|
||||||
spv::BuiltIn builtIn);
|
spv::BuiltIn builtIn);
|
||||||
|
|
||||||
|
void memberDecorate(
|
||||||
|
uint32_t structId,
|
||||||
|
uint32_t memberId,
|
||||||
|
spv::Decoration decoration);
|
||||||
|
|
||||||
void memberDecorateOffset(
|
void memberDecorateOffset(
|
||||||
uint32_t structId,
|
uint32_t structId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user