Support Dim InputTarget
authorDavid Neto <dneto@google.com>
Wed, 23 Sep 2015 14:30:06 +0000 (10:30 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:55:33 +0000 (12:55 -0400)
source/operand.cpp
test/TextToBinary.TypeDeclaration.cpp

index 962f396..7c0e7ad 100644 (file)
@@ -363,6 +363,7 @@ static const spv_operand_desc_t storageClassEntries[] = {
 };
 
 static const spv_operand_desc_t dimensionalityEntries[] = {
+  // TODO(dneto): Update capability dependencies for Rev32
     {"1D", Dim1D, SPV_OPCODE_FLAGS_NONE, 0, {SPV_OPERAND_TYPE_NONE}},
     {"2D", Dim2D, SPV_OPCODE_FLAGS_NONE, 0, {SPV_OPERAND_TYPE_NONE}},
     {"3D", Dim3D, SPV_OPCODE_FLAGS_NONE, 0, {SPV_OPERAND_TYPE_NONE}},
@@ -377,6 +378,11 @@ static const spv_operand_desc_t dimensionalityEntries[] = {
      CapabilityShader,
      {SPV_OPERAND_TYPE_NONE}},
     {"Buffer", DimBuffer, SPV_OPCODE_FLAGS_NONE, 0, {SPV_OPERAND_TYPE_NONE}},
+    {"InputTarget",
+     DimInputTarget,
+     SPV_OPCODE_FLAGS_CAPABILITIES,
+     CapabilityInputTarget,
+     {SPV_OPERAND_TYPE_NONE}},
 };
 
 static const spv_operand_desc_t samplerAddressingModeEntries[] = {
index 23f6084..0807baf 100644 (file)
@@ -62,7 +62,7 @@ INSTANTIATE_TEST_CASE_P(
         CASE(Cube),
         CASE(Rect),
         CASE(Buffer),
-        // TODO(dneto): Rev32 adds InputTarget.
+        CASE(InputTarget),
     }));
 #undef CASE
 // clang-format on
@@ -125,7 +125,6 @@ INSTANTIATE_TEST_CASE_P(
         CASE(Rg8ui),
         CASE(R16ui),
         CASE(R8ui),
-        // TODO(dneto): Rev32 adds InputTarget.
     }));
 #undef CASE
 // clang-format on