diff options
Diffstat (limited to 'source/val/decoration.h')
-rw-r--r-- | source/val/decoration.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/val/decoration.h b/source/val/decoration.h index 384cc575..4f53f207 100644 --- a/source/val/decoration.h +++ b/source/val/decoration.h @@ -39,33 +39,33 @@ namespace val { // // Example 1: Decoration for an object<id> with no parameters: // OpDecorate %obj Flat -// dec_type_ = spv::Decoration::Flat +// dec_type_ = SpvDecorationFlat // params_ = empty vector // struct_member_index_ = kInvalidMember // // Example 2: Decoration for an object<id> with two parameters: // OpDecorate %obj LinkageAttributes "link" Import -// dec_type_ = spv::Decoration::LinkageAttributes +// dec_type_ = SpvDecorationLinkageAttributes // params_ = vector { link, Import } // struct_member_index_ = kInvalidMember // // Example 3: Decoration for a member of a structure with one parameter: // OpMemberDecorate %struct 2 Offset 2 -// dec_type_ = spv::Decoration::Offset +// dec_type_ = SpvDecorationOffset // params_ = vector { 2 } // struct_member_index_ = 2 // class Decoration { public: enum { kInvalidMember = -1 }; - Decoration(spv::Decoration t, + Decoration(SpvDecoration t, const std::vector<uint32_t>& parameters = std::vector<uint32_t>(), uint32_t member_index = kInvalidMember) : dec_type_(t), params_(parameters), struct_member_index_(member_index) {} void set_struct_member_index(uint32_t index) { struct_member_index_ = index; } int struct_member_index() const { return struct_member_index_; } - spv::Decoration dec_type() const { return dec_type_; } + SpvDecoration dec_type() const { return dec_type_; } std::vector<uint32_t>& params() { return params_; } const std::vector<uint32_t>& params() const { return params_; } @@ -84,7 +84,7 @@ class Decoration { } private: - spv::Decoration dec_type_; + SpvDecoration dec_type_; std::vector<uint32_t> params_; // If the decoration applies to a member of a structure type, then the index |