diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h index d7dfc78..781f84a 100644 --- a/include/sirit/sirit.h +++ b/include/sirit/sirit.h @@ -368,6 +368,13 @@ public: return Decorate(target, decoration, std::span{stack_literals}); } + /// Add a decoration to target. + template + requires std::is_enum_v + Id Decorate(Id target, spv::Decoration decoration, T literal) { + return Decorate(target, decoration, static_cast(literal)); + } + Id MemberDecorate(Id structure_type, Literal member, spv::Decoration decoration, std::span literals = {});