mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-03-11 06:12:57 +00:00
Add OpDecorate
This commit is contained in:
@@ -204,6 +204,12 @@ class Module {
|
||||
Ref Variable(Ref result_type, spv::StorageClass storage_class,
|
||||
Ref initializer = nullptr);
|
||||
|
||||
// Annotation
|
||||
|
||||
/// Add a decoration to target.
|
||||
Ref Decorate(Ref target, spv::Decoration decoration,
|
||||
const std::vector<Operand*>& literals = {});
|
||||
|
||||
// Literals
|
||||
static Operand* Literal(std::uint32_t value);
|
||||
static Operand* Literal(std::uint64_t value);
|
||||
@@ -219,6 +225,8 @@ class Module {
|
||||
|
||||
Ref AddDeclaration(Op* op);
|
||||
|
||||
Ref AddAnnotation(Op* op);
|
||||
|
||||
std::uint32_t bound{1};
|
||||
|
||||
std::set<spv::Capability> capabilities;
|
||||
|
||||
Reference in New Issue
Block a user