Add new tokens for SPV_AMD_shader_fragment_mask
authorRex Xu <rex.xu@amd.com>
Tue, 12 Sep 2017 07:51:35 +0000 (15:51 +0800)
committerRex Xu <rex.xu@amd.com>
Tue, 12 Sep 2017 07:51:35 +0000 (15:51 +0800)
include/spirv/1.0/spirv.core.grammar.json

index efc281b..9c2b0a0 100644 (file)
         { "kind" : "IdRef",          "name" : "'X'" }
       ],
       "capabilities" : [ "Groups" ]
+    },
+    {
+      "opname" : "OpFragmentMaskFetchAMD",
+      "opcode" : 5011,
+      "operands" : [
+        { "kind" : "IdResultType" },
+        { "kind" : "IdResult" },
+        { "kind" : "IdRef", "name" : "'Image'" },
+        { "kind" : "IdRef", "name" : "'Coordinate'" },
+      ],
+      "capabilities" : [ "FragmentMaskAMD" ]
+    },
+    {
+      "opname" : "OpFragmentFetchAMD",
+      "opcode" : 5012,
+      "operands" : [
+        { "kind" : "IdResultType" },
+        { "kind" : "IdResult" },
+        { "kind" : "IdRef", "name" : "'Image'" },
+        { "kind" : "IdRef", "name" : "'Coordinate'" },
+        { "kind" : "IdRef", "name" : "'Fragment Index'" },
+      ],
+      "capabilities" : [ "FragmentMaskAMD" ]
     }
   ],
   "operand_kinds" : [
           "extensions" : [ "SPV_AMD_texture_gather_bias_lod" ]
         },
         {
+          "enumerant" : "FragmentMaskAMD",
+          "value" : 5010,
+          "capabilities" : [ "Shader" ],
+          "extensions" : [ "SPV_AMD_shader_fragment_mask" ]
+        },
+        {
           "enumerant" : "StencilExportEXT",
           "value" : 5013,
           "capabilities" : [ "Shader" ],