Clarify handling of OperandImageOperands.
authorDejan Mircevski <deki@google.com>
Tue, 13 Oct 2015 18:41:31 +0000 (14:41 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:55:33 +0000 (12:55 -0400)
source/opcode.cpp

index 70f1ad7..d30d356 100644 (file)
@@ -131,7 +131,9 @@ spv_operand_type_t convertOperandClassToType(spv::Op opcode,
       // It is not used as an operand.
       break;
     case OperandImageOperands:
-      // This is not used. It's only an artifact of spec generation.
+      // This is not used in opcode.inc. It only exists to generate the
+      // corresponding spec section. In parsing, image operands meld into the
+      // OperandOptionalImage case.
       break;
     case OperandFPFastMath: return SPV_OPERAND_TYPE_FP_FAST_MATH_MODE;
     case OperandFPRoundingMode: return SPV_OPERAND_TYPE_FP_ROUNDING_MODE;