diff options
Diffstat (limited to 'source/slang/modifier-defs.h')
| -rw-r--r-- | source/slang/modifier-defs.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/slang/modifier-defs.h b/source/slang/modifier-defs.h index 597d59d9a..d7d0391e4 100644 --- a/source/slang/modifier-defs.h +++ b/source/slang/modifier-defs.h @@ -209,6 +209,20 @@ SYNTAX_CLASS(MagicTypeModifier, Modifier) FIELD(uint32_t, tag) END_SYNTAX_CLASS() +// A modifier applied to declarations of builtin types to indicate how they +// should be lowered to the IR. +// +// TODO: This should really subsume `BuiltinTypeModifier` and +// `MagicTypeModifier` so that we don't have to apply all of them. +SYNTAX_CLASS(IntrinsicTypeModifier, Modifier) + // The IR opcode to use when constructing a type + FIELD(uint32_t, irOp) + + // Additional literal opreands to provide when creating instances. + // (e.g., for a texture type this passes in shape/mutability info) + FIELD(List<uint32_t>, irOperands) +END_SYNTAX_CLASS() + // Modifiers that affect the storage layout for matrices SIMPLE_SYNTAX_CLASS(MatrixLayoutModifier, Modifier) |
