diff options
Diffstat (limited to 'src/instructions/memory.cpp')
-rw-r--r-- | src/instructions/memory.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/instructions/memory.cpp b/src/instructions/memory.cpp index a542e9f..68f0154 100644 --- a/src/instructions/memory.cpp +++ b/src/instructions/memory.cpp @@ -46,6 +46,12 @@ Id Module::OpVectorInsertDynamic(Id result_type, Id vector, Id component, Id ind << index << EndOp{}; } +Id Module::OpVectorShuffle(Id result_type, Id vector_1, Id vector_2, std::span<const Literal> components) { + code->Reserve(5 + components.size()); + return *code << OpId{spv::Op::OpVectorShuffle, result_type} << vector_1 << vector_2 + << components << EndOp{}; +} + Id Module::OpCompositeInsert(Id result_type, Id object, Id composite, std::span<const Literal> indexes) { code->Reserve(5 + indexes.size()); |