mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[spirv] Expose MatrixStride decoration for members
This commit is contained in:
parent
80808d743b
commit
194db57a4d
@ -535,6 +535,18 @@ namespace dxvk {
|
||||
m_annotations.putWord (memberId);
|
||||
m_annotations.putWord (decoration);
|
||||
}
|
||||
|
||||
|
||||
void SpirvModule::memberDecorateMatrixStride(
|
||||
uint32_t structId,
|
||||
uint32_t memberId,
|
||||
uint32_t stride) {
|
||||
m_annotations.putIns (spv::OpMemberDecorate, 5);
|
||||
m_annotations.putWord (structId);
|
||||
m_annotations.putWord (memberId);
|
||||
m_annotations.putWord (spv::DecorationMatrixStride);
|
||||
m_annotations.putWord (stride);
|
||||
}
|
||||
|
||||
|
||||
void SpirvModule::memberDecorateOffset(
|
||||
|
@ -229,6 +229,11 @@ namespace dxvk {
|
||||
uint32_t structId,
|
||||
uint32_t memberId,
|
||||
spv::Decoration decoration);
|
||||
|
||||
void memberDecorateMatrixStride(
|
||||
uint32_t structId,
|
||||
uint32_t memberId,
|
||||
uint32_t stride);
|
||||
|
||||
void memberDecorateOffset(
|
||||
uint32_t structId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user