summaryrefslogtreecommitdiff
path: root/source/val
diff options
context:
space:
mode:
authorDavid Neto <dneto@google.com>2018-03-05 13:34:13 -0500
committerLei Zhang <antiagainst@google.com>2018-03-05 13:34:13 -0500
commit5f69f7512695bd7b26f83ed9872be45159a46cf6 (patch)
tree7f8b95f46f24025e89db09829ccff34a06ae8ef0 /source/val
parent9ba50e34f26cac5e6baf19cef2b646c66f4db025 (diff)
Support SPV_GOOGLE_decorate_string and SPV_GOOGLE_hlsl_functionality1
This commit add assembling, disassembling, and basic validation for two Google extensions to better support HLSL translation.
Diffstat (limited to 'source/val')
-rw-r--r--source/val/validation_state.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/val/validation_state.cpp b/source/val/validation_state.cpp
index ed4cd70f..36bfbc2c 100644
--- a/source/val/validation_state.cpp
+++ b/source/val/validation_state.cpp
@@ -73,6 +73,9 @@ bool IsInstructionInLayoutSection(ModuleLayoutSection layout, SpvOp op) {
case SpvOpGroupDecorate:
case SpvOpGroupMemberDecorate:
case SpvOpDecorationGroup:
+ case SpvOpDecorateId:
+ case SpvOpDecorateStringGOOGLE:
+ case SpvOpMemberDecorateStringGOOGLE:
out = true;
break;
default: break;