mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-25 16:55:55 +01:00
Upgrade to C++20 and use std::span
This commit is contained in:
parent
eefca56afd
commit
c4ea8f4b76
18 changed files with 119 additions and 102 deletions
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace Sirit {
|
||||
|
||||
Id Module::OpExtInst(Id result_type, Id set, u32 instruction, const std::vector<Id>& operands) {
|
||||
Id Module::OpExtInst(Id result_type, Id set, u32 instruction, std::span<const Id> operands) {
|
||||
auto op{std::make_unique<Op>(spv::Op::OpExtInst, bound++, result_type)};
|
||||
op->Add(set);
|
||||
op->Add(instruction);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue