Lines Matching refs:decoration
61 const Decoration& decoration, in GetUnderlyingType() argument
64 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in GetUnderlyingType()
71 *underlying_type = inst.word(decoration.struct_member_index() + 2); in GetUnderlyingType()
263 spv_result_t ValidateSingleBuiltInAtDefinition(const Decoration& decoration,
272 const Decoration& decoration, const Instruction& inst);
273 spv_result_t ValidateFragCoordAtDefinition(const Decoration& decoration,
275 spv_result_t ValidateFragDepthAtDefinition(const Decoration& decoration,
277 spv_result_t ValidateFrontFacingAtDefinition(const Decoration& decoration,
280 const Decoration& decoration, const Instruction& inst);
281 spv_result_t ValidateInvocationIdAtDefinition(const Decoration& decoration,
283 spv_result_t ValidateInstanceIndexAtDefinition(const Decoration& decoration,
286 const Decoration& decoration, const Instruction& inst);
287 spv_result_t ValidatePatchVerticesAtDefinition(const Decoration& decoration,
289 spv_result_t ValidatePointCoordAtDefinition(const Decoration& decoration,
291 spv_result_t ValidatePointSizeAtDefinition(const Decoration& decoration,
293 spv_result_t ValidatePositionAtDefinition(const Decoration& decoration,
295 spv_result_t ValidatePrimitiveIdAtDefinition(const Decoration& decoration,
297 spv_result_t ValidateSampleIdAtDefinition(const Decoration& decoration,
299 spv_result_t ValidateSampleMaskAtDefinition(const Decoration& decoration,
301 spv_result_t ValidateSamplePositionAtDefinition(const Decoration& decoration,
303 spv_result_t ValidateTessCoordAtDefinition(const Decoration& decoration,
305 spv_result_t ValidateTessLevelOuterAtDefinition(const Decoration& decoration,
307 spv_result_t ValidateTessLevelInnerAtDefinition(const Decoration& decoration,
309 spv_result_t ValidateVertexIndexAtDefinition(const Decoration& decoration,
311 spv_result_t ValidateVertexIdAtDefinition(const Decoration& decoration,
314 const Decoration& decoration, const Instruction& inst);
315 spv_result_t ValidateWorkgroupSizeAtDefinition(const Decoration& decoration,
318 const Decoration& decoration, const Instruction& inst);
319 spv_result_t ValidateDrawIndexAtDefinition(const Decoration& decoration,
321 spv_result_t ValidateViewIndexAtDefinition(const Decoration& decoration,
323 spv_result_t ValidateDeviceIndexAtDefinition(const Decoration& decoration,
325 spv_result_t ValidateFragInvocationCountAtDefinition(const Decoration& decoration,
327 spv_result_t ValidateFragSizeAtDefinition(const Decoration& decoration,
329 spv_result_t ValidateFragStencilRefAtDefinition(const Decoration& decoration,
331 spv_result_t ValidateFullyCoveredAtDefinition(const Decoration& decoration,
335 const Decoration& decoration, const Instruction& inst);
336 spv_result_t ValidateNVSMOrARMCoreBuiltinsAtDefinition(const Decoration& decoration,
340 const Decoration& decoration, const Instruction& inst);
343 spv_result_t ValidateI32Vec4InputAtDefinition(const Decoration& decoration,
346 spv_result_t ValidateI32InputAtDefinition(const Decoration& decoration,
349 spv_result_t ValidateComputeI32InputAtDefinition(const Decoration& decoration,
353 const Decoration& decoration, const Instruction& inst);
355 spv_result_t ValidateShadingRateAtDefinition(const Decoration& decoration,
359 const Decoration& decoration, const Instruction& inst);
369 const Decoration& decoration, const Instruction& built_in_inst,
374 const Decoration& decoration, const Instruction& built_in_inst,
379 const Decoration& decoration, const Instruction& built_in_inst,
384 const Decoration& decoration, const Instruction& built_in_inst,
389 const Decoration& decoration, const Instruction& built_in_inst,
394 const Decoration& decoration, const Instruction& built_in_inst,
399 const Decoration& decoration, const Instruction& built_in_inst,
404 const Decoration& decoration, const Instruction& built_in_inst,
409 const Decoration& decoration, const Instruction& built_in_inst,
414 const Decoration& decoration, const Instruction& built_in_inst,
419 const Decoration& decoration, const Instruction& built_in_inst,
424 const Decoration& decoration, const Instruction& built_in_inst,
429 const Decoration& decoration, const Instruction& built_in_inst,
434 const Decoration& decoration, const Instruction& built_in_inst,
439 const Decoration& decoration, const Instruction& built_in_inst,
444 const Decoration& decoration, const Instruction& built_in_inst,
449 const Decoration& decoration, const Instruction& built_in_inst,
454 const Decoration& decoration, const Instruction& built_in_inst,
459 const Decoration& decoration, const Instruction& built_in_inst,
464 const Decoration& decoration, const Instruction& built_in_inst,
469 const Decoration& decoration, const Instruction& built_in_inst,
474 const Decoration& decoration, const Instruction& built_in_inst,
479 const Decoration& decoration, const Instruction& built_in_inst,
484 const Decoration& decoration, const Instruction& built_in_inst,
489 const Decoration& decoration, const Instruction& built_in_inst,
494 const Decoration& decoration, const Instruction& built_in_inst,
499 const Decoration& decoration, const Instruction& built_in_inst,
504 const Decoration& decoration, const Instruction& built_in_inst,
509 const Decoration& decoration, const Instruction& built_in_inst,
515 const Decoration& decoration, const Instruction& built_in_inst,
521 const Decoration& decoration, const Instruction& built_in_inst,
527 const Decoration& decoration, const Instruction& built_in_inst,
532 const Decoration& decoration, const Instruction& built_in_inst,
537 const Decoration& decoration, const Instruction& built_in_inst,
542 const Decoration& decoration, const Instruction& built_in_inst,
547 const Decoration& decoration, const Instruction& built_in_inst,
563 const Decoration& decoration, const Instruction& built_in_inst,
571 const Decoration& decoration, const Instruction& inst,
574 const Decoration& decoration, const Instruction& inst,
577 const Decoration& decoration, const Instruction& inst,
580 const Decoration& decoration, const Instruction& inst,
584 const Decoration& decoration, const Instruction& inst,
587 const Decoration& decoration, const Instruction& inst,
590 const Decoration& decoration, const Instruction& inst,
594 const Decoration& decoration, const Instruction& inst,
597 const Decoration& decoration, const Instruction& inst,
600 const Decoration& decoration, const Instruction& inst,
604 const Decoration& decoration, const Instruction& inst,
608 const Decoration& decoration, const Instruction& inst,
612 const Decoration& decoration, const Instruction& inst,
618 const Decoration& decoration, const Instruction& inst,
622 const Decoration& decoration, const Instruction& inst,
626 const Decoration& decoration, const Instruction& inst,
631 const Decoration& decoration, const Instruction& inst,
636 std::string GetDefinitionDesc(const Decoration& decoration,
642 const Decoration& decoration, const Instruction& built_in_inst,
704 const Decoration& decoration, const Instruction& inst) const { in GetDefinitionDesc() argument
706 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in GetDefinitionDesc()
708 ss << "Member #" << decoration.struct_member_index(); in GetDefinitionDesc()
717 const Decoration& decoration, const Instruction& built_in_inst, in GetReferenceDesc() argument
729 decoration.params()[0]); in GetReferenceDesc()
753 const Decoration& decoration, const Instruction& inst, in ValidateBool() argument
757 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateBool()
762 return diag(GetDefinitionDesc(decoration, inst) + " is not a bool scalar."); in ValidateBool()
769 const Decoration& decoration, const Instruction& inst, in ValidateI() argument
773 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateI()
778 return diag(GetDefinitionDesc(decoration, inst) + " is not an int scalar."); in ValidateI()
785 const Decoration& decoration, const Instruction& inst, in ValidateI32() argument
789 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateI32()
793 return ValidateI32Helper(decoration, inst, diag, underlying_type); in ValidateI32()
797 const Decoration& decoration, const Instruction& inst, in ValidateOptionalArrayedI32() argument
801 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateOptionalArrayedI32()
810 return ValidateI32Helper(decoration, inst, diag, underlying_type); in ValidateOptionalArrayedI32()
814 const Decoration& decoration, const Instruction& inst, in ValidateI32Helper() argument
818 return diag(GetDefinitionDesc(decoration, inst) + " is not an int scalar."); in ValidateI32Helper()
824 ss << GetDefinitionDesc(decoration, inst) << " has bit width " << bit_width in ValidateI32Helper()
833 const Decoration& decoration, const Instruction& inst, in ValidateOptionalArrayedF32() argument
837 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateOptionalArrayedF32()
846 return ValidateF32Helper(decoration, inst, diag, underlying_type); in ValidateOptionalArrayedF32()
850 const Decoration& decoration, const Instruction& inst, in ValidateF32() argument
854 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateF32()
858 return ValidateF32Helper(decoration, inst, diag, underlying_type); in ValidateF32()
862 const Decoration& decoration, const Instruction& inst, in ValidateF32Helper() argument
866 return diag(GetDefinitionDesc(decoration, inst) + in ValidateF32Helper()
873 ss << GetDefinitionDesc(decoration, inst) << " has bit width " << bit_width in ValidateF32Helper()
882 const Decoration& decoration, const Instruction& inst, in ValidateI32Vec() argument
887 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateI32Vec()
892 return diag(GetDefinitionDesc(decoration, inst) + " is not an int vector."); in ValidateI32Vec()
898 ss << GetDefinitionDesc(decoration, inst) << " has " in ValidateI32Vec()
906 ss << GetDefinitionDesc(decoration, inst) in ValidateI32Vec()
915 const Decoration& decoration, const Instruction& inst, in ValidateOptionalArrayedF32Vec() argument
920 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateOptionalArrayedF32Vec()
929 return ValidateF32VecHelper(decoration, inst, num_components, diag, in ValidateOptionalArrayedF32Vec()
934 const Decoration& decoration, const Instruction& inst, in ValidateF32Vec() argument
939 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateF32Vec()
943 return ValidateF32VecHelper(decoration, inst, num_components, diag, in ValidateF32Vec()
948 const Decoration& decoration, const Instruction& inst, in ValidateF32VecHelper() argument
953 return diag(GetDefinitionDesc(decoration, inst) + in ValidateF32VecHelper()
960 ss << GetDefinitionDesc(decoration, inst) << " has " in ValidateF32VecHelper()
968 ss << GetDefinitionDesc(decoration, inst) in ValidateF32VecHelper()
977 const Decoration& decoration, const Instruction& inst, in ValidateI32Arr() argument
981 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateI32Arr()
987 return diag(GetDefinitionDesc(decoration, inst) + " is not an array."); in ValidateI32Arr()
992 return diag(GetDefinitionDesc(decoration, inst) + in ValidateI32Arr()
999 ss << GetDefinitionDesc(decoration, inst) in ValidateI32Arr()
1008 const Decoration& decoration, const Instruction& inst, in ValidateF32Arr() argument
1013 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateF32Arr()
1017 return ValidateF32ArrHelper(decoration, inst, num_components, diag, in ValidateF32Arr()
1022 const Decoration& decoration, const Instruction& inst, in ValidateOptionalArrayedF32Arr() argument
1027 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateOptionalArrayedF32Arr()
1039 return ValidateF32ArrHelper(decoration, inst, num_components, diag, in ValidateOptionalArrayedF32Arr()
1044 const Decoration& decoration, const Instruction& inst, in ValidateF32ArrHelper() argument
1050 return diag(GetDefinitionDesc(decoration, inst) + " is not an array."); in ValidateF32ArrHelper()
1055 return diag(GetDefinitionDesc(decoration, inst) + in ValidateF32ArrHelper()
1062 ss << GetDefinitionDesc(decoration, inst) in ValidateF32ArrHelper()
1074 ss << GetDefinitionDesc(decoration, inst) << " has " in ValidateF32ArrHelper()
1084 const Decoration& decoration, const Instruction& inst, in ValidateF32Mat() argument
1093 GetUnderlyingType(_, decoration, inst, &underlying_type)) { in ValidateF32Mat()
1100 ss << GetDefinitionDesc(decoration, inst) << " has columns " << num_cols in ValidateF32Mat()
1106 return ValidateF32VecHelper(decoration, inst, req_num_rows, diag, col_type); in ValidateF32Mat()
1111 const Decoration& decoration, const Instruction& built_in_inst, in ValidateNotCalledWithExecutionModel() argument
1119 SPV_OPERAND_TYPE_BUILT_IN, decoration.params()[0]); in ValidateNotCalledWithExecutionModel()
1134 vuid, comment, execution_model, decoration, built_in_inst, in ValidateNotCalledWithExecutionModel()
1141 const Decoration& decoration, const Instruction& inst) { in ValidateClipOrCullDistanceAtDefinition() argument
1143 return ValidateClipOrCullDistanceAtReference(decoration, inst, inst, inst); in ValidateClipOrCullDistanceAtDefinition()
1147 const Decoration& decoration, const Instruction& built_in_inst, in ValidateClipOrCullDistanceAtReference() argument
1150 uint32_t operand = decoration.params()[0]; in ValidateClipOrCullDistanceAtReference()
1156 uint32_t vuid = (decoration.params()[0] == SpvBuiltInClipDistance) ? 4190 : 4199; in ValidateClipOrCullDistanceAtReference()
1163 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateClipOrCullDistanceAtReference()
1170 uint32_t vuid = (decoration.params()[0] == SpvBuiltInClipDistance) ? 4188 : 4197; in ValidateClipOrCullDistanceAtReference()
1176 SpvExecutionModelVertex, decoration, built_in_inst, in ValidateClipOrCullDistanceAtReference()
1183 SpvExecutionModelMeshNV, decoration, built_in_inst, in ValidateClipOrCullDistanceAtReference()
1190 SpvExecutionModelMeshEXT, decoration, built_in_inst, in ValidateClipOrCullDistanceAtReference()
1196 uint32_t vuid = (decoration.params()[0] == SpvBuiltInClipDistance) ? 4189 : 4198; in ValidateClipOrCullDistanceAtReference()
1202 SpvExecutionModelFragment, decoration, built_in_inst, in ValidateClipOrCullDistanceAtReference()
1211 decoration, built_in_inst, /* Any number of components */ 0, in ValidateClipOrCullDistanceAtReference()
1212 [this, &decoration, &referenced_from_inst]( in ValidateClipOrCullDistanceAtReference()
1215 (decoration.params()[0] == SpvBuiltInClipDistance) in ValidateClipOrCullDistanceAtReference()
1223 decoration.params()[0]) in ValidateClipOrCullDistanceAtReference()
1236 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in ValidateClipOrCullDistanceAtReference()
1239 decoration, built_in_inst, /* Any number of components */ 0, in ValidateClipOrCullDistanceAtReference()
1240 [this, &decoration, &referenced_from_inst]( in ValidateClipOrCullDistanceAtReference()
1243 (decoration.params()[0] == SpvBuiltInClipDistance) in ValidateClipOrCullDistanceAtReference()
1252 decoration.params()[0]) in ValidateClipOrCullDistanceAtReference()
1260 decoration, built_in_inst, /* Any number of components */ 0, in ValidateClipOrCullDistanceAtReference()
1261 [this, &decoration, &referenced_from_inst]( in ValidateClipOrCullDistanceAtReference()
1264 (decoration.params()[0] == SpvBuiltInClipDistance) in ValidateClipOrCullDistanceAtReference()
1273 decoration.params()[0]) in ValidateClipOrCullDistanceAtReference()
1285 (decoration.params()[0] == SpvBuiltInClipDistance) ? 4187 : 4196; in ValidateClipOrCullDistanceAtReference()
1293 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateClipOrCullDistanceAtReference()
1304 this, decoration, built_in_inst, referenced_from_inst, in ValidateClipOrCullDistanceAtReference()
1312 const Decoration& decoration, const Instruction& inst) { in ValidateFragCoordAtDefinition() argument
1315 decoration, inst, 4, in ValidateFragCoordAtDefinition()
1330 return ValidateFragCoordAtReference(decoration, inst, inst, inst); in ValidateFragCoordAtDefinition()
1334 const Decoration& decoration, const Instruction& built_in_inst, in ValidateFragCoordAtReference() argument
1345 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragCoordAtReference()
1357 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragCoordAtReference()
1366 &BuiltInsValidator::ValidateFragCoordAtReference, this, decoration, in ValidateFragCoordAtReference()
1374 const Decoration& decoration, const Instruction& inst) { in ValidateFragDepthAtDefinition() argument
1377 decoration, inst, in ValidateFragDepthAtDefinition()
1391 return ValidateFragDepthAtReference(decoration, inst, inst, inst); in ValidateFragDepthAtDefinition()
1395 const Decoration& decoration, const Instruction& built_in_inst, in ValidateFragDepthAtReference() argument
1406 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragDepthAtReference()
1418 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragDepthAtReference()
1433 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragDepthAtReference()
1442 &BuiltInsValidator::ValidateFragDepthAtReference, this, decoration, in ValidateFragDepthAtReference()
1450 const Decoration& decoration, const Instruction& inst) { in ValidateFrontFacingAtDefinition() argument
1453 decoration, inst, in ValidateFrontFacingAtDefinition()
1467 return ValidateFrontFacingAtReference(decoration, inst, inst, inst); in ValidateFrontFacingAtDefinition()
1471 const Decoration& decoration, const Instruction& built_in_inst, in ValidateFrontFacingAtReference() argument
1482 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFrontFacingAtReference()
1494 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFrontFacingAtReference()
1503 &BuiltInsValidator::ValidateFrontFacingAtReference, this, decoration, in ValidateFrontFacingAtReference()
1511 const Decoration& decoration, const Instruction& inst) { in ValidateHelperInvocationAtDefinition() argument
1514 decoration, inst, in ValidateHelperInvocationAtDefinition()
1527 return ValidateHelperInvocationAtReference(decoration, inst, inst, inst); in ValidateHelperInvocationAtDefinition()
1531 const Decoration& decoration, const Instruction& built_in_inst, in ValidateHelperInvocationAtReference() argument
1542 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateHelperInvocationAtReference()
1553 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateHelperInvocationAtReference()
1563 decoration, built_in_inst, referenced_from_inst, in ValidateHelperInvocationAtReference()
1571 const Decoration& decoration, const Instruction& inst) { in ValidateInvocationIdAtDefinition() argument
1574 decoration, inst, in ValidateInvocationIdAtDefinition()
1587 return ValidateInvocationIdAtReference(decoration, inst, inst, inst); in ValidateInvocationIdAtDefinition()
1591 const Decoration& decoration, const Instruction& built_in_inst, in ValidateInvocationIdAtReference() argument
1602 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateInvocationIdAtReference()
1614 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateInvocationIdAtReference()
1623 &BuiltInsValidator::ValidateInvocationIdAtReference, this, decoration, in ValidateInvocationIdAtReference()
1631 const Decoration& decoration, const Instruction& inst) { in ValidateInstanceIndexAtDefinition() argument
1634 decoration, inst, in ValidateInstanceIndexAtDefinition()
1648 return ValidateInstanceIndexAtReference(decoration, inst, inst, inst); in ValidateInstanceIndexAtDefinition()
1652 const Decoration& decoration, const Instruction& built_in_inst, in ValidateInstanceIndexAtReference() argument
1663 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateInstanceIndexAtReference()
1675 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateInstanceIndexAtReference()
1684 &BuiltInsValidator::ValidateInstanceIndexAtReference, this, decoration, in ValidateInstanceIndexAtReference()
1692 const Decoration& decoration, const Instruction& inst) { in ValidatePatchVerticesAtDefinition() argument
1695 decoration, inst, in ValidatePatchVerticesAtDefinition()
1708 return ValidatePatchVerticesAtReference(decoration, inst, inst, inst); in ValidatePatchVerticesAtDefinition()
1712 const Decoration& decoration, const Instruction& built_in_inst, in ValidatePatchVerticesAtReference() argument
1723 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidatePatchVerticesAtReference()
1736 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidatePatchVerticesAtReference()
1745 &BuiltInsValidator::ValidatePatchVerticesAtReference, this, decoration, in ValidatePatchVerticesAtReference()
1753 const Decoration& decoration, const Instruction& inst) { in ValidatePointCoordAtDefinition() argument
1756 decoration, inst, 2, in ValidatePointCoordAtDefinition()
1770 return ValidatePointCoordAtReference(decoration, inst, inst, inst); in ValidatePointCoordAtDefinition()
1774 const Decoration& decoration, const Instruction& built_in_inst, in ValidatePointCoordAtReference() argument
1785 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidatePointCoordAtReference()
1796 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidatePointCoordAtReference()
1805 &BuiltInsValidator::ValidatePointCoordAtReference, this, decoration, in ValidatePointCoordAtReference()
1813 const Decoration& decoration, const Instruction& inst) { in ValidatePointSizeAtDefinition() argument
1815 return ValidatePointSizeAtReference(decoration, inst, inst, inst); in ValidatePointSizeAtDefinition()
1819 const Decoration& decoration, const Instruction& built_in_inst, in ValidatePointSizeAtReference() argument
1831 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidatePointSizeAtReference()
1843 SpvExecutionModelVertex, decoration, built_in_inst, in ValidatePointSizeAtReference()
1851 decoration, built_in_inst, in ValidatePointSizeAtReference()
1872 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in ValidatePointSizeAtReference()
1875 decoration, built_in_inst, in ValidatePointSizeAtReference()
1890 decoration, built_in_inst, in ValidatePointSizeAtReference()
1913 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidatePointSizeAtReference()
1923 &BuiltInsValidator::ValidatePointSizeAtReference, this, decoration, in ValidatePointSizeAtReference()
1931 const Decoration& decoration, const Instruction& inst) { in ValidatePositionAtDefinition() argument
1933 return ValidatePositionAtReference(decoration, inst, inst, inst); in ValidatePositionAtDefinition()
1937 const Decoration& decoration, const Instruction& built_in_inst, in ValidatePositionAtReference() argument
1948 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidatePositionAtReference()
1960 SpvExecutionModelVertex, decoration, built_in_inst, in ValidatePositionAtReference()
1967 SpvExecutionModelMeshNV, decoration, built_in_inst, in ValidatePositionAtReference()
1974 SpvExecutionModelMeshEXT, decoration, built_in_inst, in ValidatePositionAtReference()
1982 decoration, built_in_inst, 4, in ValidatePositionAtReference()
2005 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in ValidatePositionAtReference()
2009 decoration, built_in_inst, 4, in ValidatePositionAtReference()
2024 decoration, built_in_inst, 4, in ValidatePositionAtReference()
2047 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidatePositionAtReference()
2057 &BuiltInsValidator::ValidatePositionAtReference, this, decoration, in ValidatePositionAtReference()
2065 const Decoration& decoration, const Instruction& inst) { in ValidatePrimitiveIdAtDefinition() argument
2069 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in ValidatePrimitiveIdAtDefinition()
2072 decoration, inst, in ValidatePrimitiveIdAtDefinition()
2084 decoration, inst, in ValidatePrimitiveIdAtDefinition()
2098 return ValidatePrimitiveIdAtReference(decoration, inst, inst, inst); in ValidatePrimitiveIdAtDefinition()
2102 const Decoration& decoration, const Instruction& built_in_inst, in ValidatePrimitiveIdAtReference() argument
2113 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidatePrimitiveIdAtReference()
2125 SpvExecutionModelTessellationControl, decoration, built_in_inst, in ValidatePrimitiveIdAtReference()
2132 SpvExecutionModelTessellationEvaluation, decoration, built_in_inst, in ValidatePrimitiveIdAtReference()
2139 SpvExecutionModelFragment, decoration, built_in_inst, in ValidatePrimitiveIdAtReference()
2146 SpvExecutionModelIntersectionKHR, decoration, built_in_inst, in ValidatePrimitiveIdAtReference()
2153 SpvExecutionModelAnyHitKHR, decoration, built_in_inst, in ValidatePrimitiveIdAtReference()
2160 SpvExecutionModelClosestHitKHR, decoration, built_in_inst, in ValidatePrimitiveIdAtReference()
2186 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidatePrimitiveIdAtReference()
2196 &BuiltInsValidator::ValidatePrimitiveIdAtReference, this, decoration, in ValidatePrimitiveIdAtReference()
2204 const Decoration& decoration, const Instruction& inst) { in ValidateSampleIdAtDefinition() argument
2207 decoration, inst, in ValidateSampleIdAtDefinition()
2220 return ValidateSampleIdAtReference(decoration, inst, inst, inst); in ValidateSampleIdAtDefinition()
2224 const Decoration& decoration, const Instruction& built_in_inst, in ValidateSampleIdAtReference() argument
2235 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateSampleIdAtReference()
2246 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateSampleIdAtReference()
2255 &BuiltInsValidator::ValidateSampleIdAtReference, this, decoration, in ValidateSampleIdAtReference()
2263 const Decoration& decoration, const Instruction& inst) { in ValidateSampleMaskAtDefinition() argument
2266 decoration, inst, in ValidateSampleMaskAtDefinition()
2279 return ValidateSampleMaskAtReference(decoration, inst, inst, inst); in ValidateSampleMaskAtDefinition()
2283 const Decoration& decoration, const Instruction& built_in_inst, in ValidateSampleMaskAtReference() argument
2295 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateSampleMaskAtReference()
2307 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateSampleMaskAtReference()
2316 &BuiltInsValidator::ValidateSampleMaskAtReference, this, decoration, in ValidateSampleMaskAtReference()
2324 const Decoration& decoration, const Instruction& inst) { in ValidateSamplePositionAtDefinition() argument
2327 decoration, inst, 2, in ValidateSamplePositionAtDefinition()
2341 return ValidateSamplePositionAtReference(decoration, inst, inst, inst); in ValidateSamplePositionAtDefinition()
2345 const Decoration& decoration, const Instruction& built_in_inst, in ValidateSamplePositionAtReference() argument
2357 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateSamplePositionAtReference()
2369 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateSamplePositionAtReference()
2378 &BuiltInsValidator::ValidateSamplePositionAtReference, this, decoration, in ValidateSamplePositionAtReference()
2386 const Decoration& decoration, const Instruction& inst) { in ValidateTessCoordAtDefinition() argument
2389 decoration, inst, 3, in ValidateTessCoordAtDefinition()
2403 return ValidateTessCoordAtReference(decoration, inst, inst, inst); in ValidateTessCoordAtDefinition()
2407 const Decoration& decoration, const Instruction& built_in_inst, in ValidateTessCoordAtReference() argument
2418 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateTessCoordAtReference()
2429 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateTessCoordAtReference()
2438 &BuiltInsValidator::ValidateTessCoordAtReference, this, decoration, in ValidateTessCoordAtReference()
2446 const Decoration& decoration, const Instruction& inst) { in ValidateTessLevelOuterAtDefinition() argument
2449 decoration, inst, 4, in ValidateTessLevelOuterAtDefinition()
2463 return ValidateTessLevelAtReference(decoration, inst, inst, inst); in ValidateTessLevelOuterAtDefinition()
2467 const Decoration& decoration, const Instruction& inst) { in ValidateTessLevelInnerAtDefinition() argument
2470 decoration, inst, 2, in ValidateTessLevelInnerAtDefinition()
2484 return ValidateTessLevelAtReference(decoration, inst, inst, inst); in ValidateTessLevelInnerAtDefinition()
2488 const Decoration& decoration, const Instruction& built_in_inst, in ValidateTessLevelAtReference() argument
2491 uint32_t operand = decoration.params()[0]; in ValidateTessLevelAtReference()
2503 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateTessLevelAtReference()
2510 uint32_t vuid = (decoration.params()[0] == SpvBuiltInTessLevelOuter) ? 4391 : 4395; in ValidateTessLevelAtReference()
2517 SpvExecutionModelTessellationControl, decoration, built_in_inst, in ValidateTessLevelAtReference()
2523 uint32_t vuid = (decoration.params()[0] == SpvBuiltInTessLevelOuter) ? 4392 : 4396; in ValidateTessLevelAtReference()
2530 SpvExecutionModelTessellationEvaluation, decoration, built_in_inst, in ValidateTessLevelAtReference()
2550 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateTessLevelAtReference()
2560 &BuiltInsValidator::ValidateTessLevelAtReference, this, decoration, in ValidateTessLevelAtReference()
2568 const Decoration& decoration, const Instruction& inst) { in ValidateVertexIndexAtDefinition() argument
2571 decoration, inst, in ValidateVertexIndexAtDefinition()
2585 return ValidateVertexIndexAtReference(decoration, inst, inst, inst); in ValidateVertexIndexAtDefinition()
2589 const Decoration& decoration, const Instruction& inst) { in ValidateVertexIdAtDefinition() argument
2590 (void)decoration; in ValidateVertexIdAtDefinition()
2601 const Decoration& decoration, const Instruction& inst) { in ValidateLocalInvocationIndexAtDefinition() argument
2603 return ValidateLocalInvocationIndexAtReference(decoration, inst, inst, inst); in ValidateLocalInvocationIndexAtDefinition()
2607 const Decoration& decoration, const Instruction& built_in_inst, in ValidateLocalInvocationIndexAtReference() argument
2614 this, decoration, built_in_inst, referenced_from_inst, in ValidateLocalInvocationIndexAtReference()
2622 const Decoration& decoration, const Instruction& built_in_inst, in ValidateVertexIndexAtReference() argument
2633 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateVertexIndexAtReference()
2645 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateVertexIndexAtReference()
2654 &BuiltInsValidator::ValidateVertexIndexAtReference, this, decoration, in ValidateVertexIndexAtReference()
2662 const Decoration& decoration, const Instruction& inst) { in ValidateLayerOrViewportIndexAtDefinition() argument
2666 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in ValidateLayerOrViewportIndexAtDefinition()
2669 decoration, inst, in ValidateLayerOrViewportIndexAtDefinition()
2670 [this, &decoration, in ValidateLayerOrViewportIndexAtDefinition()
2673 (decoration.params()[0] == SpvBuiltInLayer) ? 4276 : 4408; in ValidateLayerOrViewportIndexAtDefinition()
2678 SPV_OPERAND_TYPE_BUILT_IN, decoration.params()[0]) in ValidateLayerOrViewportIndexAtDefinition()
2686 decoration, inst, in ValidateLayerOrViewportIndexAtDefinition()
2687 [this, &decoration, in ValidateLayerOrViewportIndexAtDefinition()
2690 (decoration.params()[0] == SpvBuiltInLayer) ? 4276 : 4408; in ValidateLayerOrViewportIndexAtDefinition()
2695 SPV_OPERAND_TYPE_BUILT_IN, decoration.params()[0]) in ValidateLayerOrViewportIndexAtDefinition()
2705 return ValidateLayerOrViewportIndexAtReference(decoration, inst, inst, inst); in ValidateLayerOrViewportIndexAtDefinition()
2709 const Decoration& decoration, const Instruction& built_in_inst, in ValidateLayerOrViewportIndexAtReference() argument
2712 uint32_t operand = decoration.params()[0]; in ValidateLayerOrViewportIndexAtReference()
2724 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateLayerOrViewportIndexAtReference()
2743 em, decoration, built_in_inst, referenced_from_inst, in ValidateLayerOrViewportIndexAtReference()
2758 SpvExecutionModelFragment, decoration, built_in_inst, in ValidateLayerOrViewportIndexAtReference()
2805 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateLayerOrViewportIndexAtReference()
2816 this, decoration, built_in_inst, referenced_from_inst, in ValidateLayerOrViewportIndexAtReference()
2824 const Decoration& decoration, const Instruction& inst) { in ValidateFragmentShaderF32Vec3InputAtDefinition() argument
2826 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateFragmentShaderF32Vec3InputAtDefinition()
2828 decoration, inst, 3, in ValidateFragmentShaderF32Vec3InputAtDefinition()
2846 return ValidateFragmentShaderF32Vec3InputAtReference(decoration, inst, inst, in ValidateFragmentShaderF32Vec3InputAtDefinition()
2851 const Decoration& decoration, const Instruction& built_in_inst, in ValidateFragmentShaderF32Vec3InputAtReference() argument
2856 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateFragmentShaderF32Vec3InputAtReference()
2866 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragmentShaderF32Vec3InputAtReference()
2880 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragmentShaderF32Vec3InputAtReference()
2890 decoration, built_in_inst, referenced_from_inst, in ValidateFragmentShaderF32Vec3InputAtReference()
2898 const Decoration& decoration, const Instruction& inst) { in ValidateComputeShaderI32Vec3InputAtDefinition() argument
2900 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateComputeShaderI32Vec3InputAtDefinition()
2902 decoration, inst, 3, in ValidateComputeShaderI32Vec3InputAtDefinition()
2920 return ValidateComputeShaderI32Vec3InputAtReference(decoration, inst, inst, in ValidateComputeShaderI32Vec3InputAtDefinition()
2925 const Decoration& decoration, const Instruction& built_in_inst, in ValidateComputeShaderI32Vec3InputAtReference() argument
2929 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateComputeShaderI32Vec3InputAtReference()
2939 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateComputeShaderI32Vec3InputAtReference()
2960 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateComputeShaderI32Vec3InputAtReference()
2970 decoration, built_in_inst, referenced_from_inst, in ValidateComputeShaderI32Vec3InputAtReference()
2978 const Decoration& decoration, const Instruction& inst) { in ValidateComputeI32InputAtDefinition() argument
2980 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateComputeI32InputAtDefinition()
2981 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in ValidateComputeI32InputAtDefinition()
2988 decoration, inst, in ValidateComputeI32InputAtDefinition()
3006 return ValidateComputeI32InputAtReference(decoration, inst, inst, inst); in ValidateComputeI32InputAtDefinition()
3010 const Decoration& decoration, const Instruction& built_in_inst, in ValidateComputeI32InputAtReference() argument
3014 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateComputeI32InputAtReference()
3025 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateComputeI32InputAtReference()
3045 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateComputeI32InputAtReference()
3055 decoration, built_in_inst, referenced_from_inst, in ValidateComputeI32InputAtReference()
3063 const Decoration& decoration, const Instruction& inst) { in ValidateI32InputAtDefinition() argument
3065 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateI32InputAtDefinition()
3066 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in ValidateI32InputAtDefinition()
3073 decoration, inst, in ValidateI32InputAtDefinition()
3097 << GetReferenceDesc(decoration, inst, inst, inst) << " " in ValidateI32InputAtDefinition()
3106 const Decoration& decoration, const Instruction& inst) { in ValidateI32Vec4InputAtDefinition() argument
3108 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateI32Vec4InputAtDefinition()
3109 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in ValidateI32Vec4InputAtDefinition()
3116 decoration, inst, 4, in ValidateI32Vec4InputAtDefinition()
3142 << GetReferenceDesc(decoration, inst, inst, inst) << " " in ValidateI32Vec4InputAtDefinition()
3151 const Decoration& decoration, const Instruction& inst) { in ValidateWorkgroupSizeAtDefinition() argument
3163 decoration, inst, 3, in ValidateWorkgroupSizeAtDefinition()
3177 return ValidateWorkgroupSizeAtReference(decoration, inst, inst, inst); in ValidateWorkgroupSizeAtDefinition()
3181 const Decoration& decoration, const Instruction& built_in_inst, in ValidateWorkgroupSizeAtReference() argument
3196 decoration.params()[0]) in ValidateWorkgroupSizeAtReference()
3199 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateWorkgroupSizeAtReference()
3208 &BuiltInsValidator::ValidateWorkgroupSizeAtReference, this, decoration, in ValidateWorkgroupSizeAtReference()
3216 const Decoration& decoration, const Instruction& inst) { in ValidateBaseInstanceOrVertexAtDefinition() argument
3219 decoration, inst, in ValidateBaseInstanceOrVertexAtDefinition()
3221 &decoration](const std::string& message) -> spv_result_t { in ValidateBaseInstanceOrVertexAtDefinition()
3222 uint32_t vuid = (decoration.params()[0] == SpvBuiltInBaseInstance) in ValidateBaseInstanceOrVertexAtDefinition()
3229 decoration.params()[0]) in ValidateBaseInstanceOrVertexAtDefinition()
3237 return ValidateBaseInstanceOrVertexAtReference(decoration, inst, inst, inst); in ValidateBaseInstanceOrVertexAtDefinition()
3241 const Decoration& decoration, const Instruction& built_in_inst, in ValidateBaseInstanceOrVertexAtReference() argument
3244 uint32_t operand = decoration.params()[0]; in ValidateBaseInstanceOrVertexAtReference()
3255 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateBaseInstanceOrVertexAtReference()
3268 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateBaseInstanceOrVertexAtReference()
3278 this, decoration, built_in_inst, referenced_from_inst, in ValidateBaseInstanceOrVertexAtReference()
3286 const Decoration& decoration, const Instruction& inst) { in ValidateDrawIndexAtDefinition() argument
3289 decoration, inst, in ValidateDrawIndexAtDefinition()
3291 &decoration](const std::string& message) -> spv_result_t { in ValidateDrawIndexAtDefinition()
3296 decoration.params()[0]) in ValidateDrawIndexAtDefinition()
3304 return ValidateDrawIndexAtReference(decoration, inst, inst, inst); in ValidateDrawIndexAtDefinition()
3308 const Decoration& decoration, const Instruction& built_in_inst, in ValidateDrawIndexAtReference() argument
3311 uint32_t operand = decoration.params()[0]; in ValidateDrawIndexAtReference()
3321 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateDrawIndexAtReference()
3339 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateDrawIndexAtReference()
3348 &BuiltInsValidator::ValidateDrawIndexAtReference, this, decoration, in ValidateDrawIndexAtReference()
3356 const Decoration& decoration, const Instruction& inst) { in ValidateViewIndexAtDefinition() argument
3359 decoration, inst, in ValidateViewIndexAtDefinition()
3361 &decoration](const std::string& message) -> spv_result_t { in ValidateViewIndexAtDefinition()
3366 decoration.params()[0]) in ValidateViewIndexAtDefinition()
3374 return ValidateViewIndexAtReference(decoration, inst, inst, inst); in ValidateViewIndexAtDefinition()
3378 const Decoration& decoration, const Instruction& built_in_inst, in ValidateViewIndexAtReference() argument
3381 uint32_t operand = decoration.params()[0]; in ValidateViewIndexAtReference()
3391 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateViewIndexAtReference()
3403 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateViewIndexAtReference()
3412 &BuiltInsValidator::ValidateViewIndexAtReference, this, decoration, in ValidateViewIndexAtReference()
3420 const Decoration& decoration, const Instruction& inst) { in ValidateDeviceIndexAtDefinition() argument
3423 decoration, inst, in ValidateDeviceIndexAtDefinition()
3425 &decoration](const std::string& message) -> spv_result_t { in ValidateDeviceIndexAtDefinition()
3430 decoration.params()[0]) in ValidateDeviceIndexAtDefinition()
3438 return ValidateDeviceIndexAtReference(decoration, inst, inst, inst); in ValidateDeviceIndexAtDefinition()
3442 const Decoration& decoration, const Instruction& built_in_inst, in ValidateDeviceIndexAtReference() argument
3445 uint32_t operand = decoration.params()[0]; in ValidateDeviceIndexAtReference()
3455 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateDeviceIndexAtReference()
3464 &BuiltInsValidator::ValidateDeviceIndexAtReference, this, decoration, in ValidateDeviceIndexAtReference()
3471 …v_result_t BuiltInsValidator::ValidateFragInvocationCountAtDefinition(const Decoration& decoration, in ValidateFragInvocationCountAtDefinition() argument
3475 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateFragInvocationCountAtDefinition()
3477 decoration, inst, in ValidateFragInvocationCountAtDefinition()
3493 return ValidateFragInvocationCountAtReference(decoration, inst, inst, inst); in ValidateFragInvocationCountAtDefinition()
3497 const Decoration& decoration, const Instruction& built_in_inst, in ValidateFragInvocationCountAtReference() argument
3502 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateFragInvocationCountAtReference()
3512 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragInvocationCountAtReference()
3526 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragInvocationCountAtReference()
3535 &BuiltInsValidator::ValidateFragInvocationCountAtReference, this, decoration, in ValidateFragInvocationCountAtReference()
3542 spv_result_t BuiltInsValidator::ValidateFragSizeAtDefinition(const Decoration& decoration, in ValidateFragSizeAtDefinition() argument
3545 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateFragSizeAtDefinition()
3547 decoration, inst, 2, in ValidateFragSizeAtDefinition()
3563 return ValidateFragSizeAtReference(decoration, inst, inst, inst); in ValidateFragSizeAtDefinition()
3567 const Decoration& decoration, const Instruction& built_in_inst, in ValidateFragSizeAtReference() argument
3572 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateFragSizeAtReference()
3582 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragSizeAtReference()
3596 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragSizeAtReference()
3605 &BuiltInsValidator::ValidateFragSizeAtReference, this, decoration, in ValidateFragSizeAtReference()
3612 spv_result_t BuiltInsValidator::ValidateFragStencilRefAtDefinition(const Decoration& decoration, in ValidateFragStencilRefAtDefinition() argument
3615 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateFragStencilRefAtDefinition()
3617 decoration, inst, in ValidateFragStencilRefAtDefinition()
3633 return ValidateFragStencilRefAtReference(decoration, inst, inst, inst); in ValidateFragStencilRefAtDefinition()
3637 const Decoration& decoration, const Instruction& built_in_inst, in ValidateFragStencilRefAtReference() argument
3642 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateFragStencilRefAtReference()
3652 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragStencilRefAtReference()
3666 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFragStencilRefAtReference()
3675 &BuiltInsValidator::ValidateFragStencilRefAtReference, this, decoration, in ValidateFragStencilRefAtReference()
3682 spv_result_t BuiltInsValidator::ValidateFullyCoveredAtDefinition(const Decoration& decoration, in ValidateFullyCoveredAtDefinition() argument
3685 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateFullyCoveredAtDefinition()
3687 decoration, inst, in ValidateFullyCoveredAtDefinition()
3703 return ValidateFullyCoveredAtReference(decoration, inst, inst, inst); in ValidateFullyCoveredAtDefinition()
3707 const Decoration& decoration, const Instruction& built_in_inst, in ValidateFullyCoveredAtReference() argument
3712 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateFullyCoveredAtReference()
3722 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFullyCoveredAtReference()
3736 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateFullyCoveredAtReference()
3745 &BuiltInsValidator::ValidateFullyCoveredAtReference, this, decoration, in ValidateFullyCoveredAtReference()
3753 const Decoration& decoration, const Instruction& inst) { in ValidateNVSMOrARMCoreBuiltinsAtDefinition() argument
3756 decoration, inst, in ValidateNVSMOrARMCoreBuiltinsAtDefinition()
3758 &decoration](const std::string& message) -> spv_result_t { in ValidateNVSMOrARMCoreBuiltinsAtDefinition()
3764 decoration.params()[0]) in ValidateNVSMOrARMCoreBuiltinsAtDefinition()
3773 return ValidateNVSMOrARMCoreBuiltinsAtReference(decoration, inst, inst, inst); in ValidateNVSMOrARMCoreBuiltinsAtDefinition()
3777 const Decoration& decoration, const Instruction& built_in_inst, in ValidateNVSMOrARMCoreBuiltinsAtReference() argument
3788 decoration.params()[0]) in ValidateNVSMOrARMCoreBuiltinsAtReference()
3791 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateNVSMOrARMCoreBuiltinsAtReference()
3800 &BuiltInsValidator::ValidateNVSMOrARMCoreBuiltinsAtReference, this, decoration, in ValidateNVSMOrARMCoreBuiltinsAtReference()
3808 const Decoration& decoration, const Instruction& inst) { in ValidatePrimitiveShadingRateAtDefinition() argument
3811 decoration, inst, in ValidatePrimitiveShadingRateAtDefinition()
3813 &decoration](const std::string& message) -> spv_result_t { in ValidatePrimitiveShadingRateAtDefinition()
3818 decoration.params()[0]) in ValidatePrimitiveShadingRateAtDefinition()
3827 return ValidatePrimitiveShadingRateAtReference(decoration, inst, inst, inst); in ValidatePrimitiveShadingRateAtDefinition()
3831 const Decoration& decoration, const Instruction& built_in_inst, in ValidatePrimitiveShadingRateAtReference() argument
3841 decoration.params()[0]) in ValidatePrimitiveShadingRateAtReference()
3843 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidatePrimitiveShadingRateAtReference()
3859 decoration.params()[0]) in ValidatePrimitiveShadingRateAtReference()
3862 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidatePrimitiveShadingRateAtReference()
3873 this, decoration, built_in_inst, referenced_from_inst, in ValidatePrimitiveShadingRateAtReference()
3881 const Decoration& decoration, const Instruction& inst) { in ValidateShadingRateAtDefinition() argument
3884 decoration, inst, in ValidateShadingRateAtDefinition()
3886 &decoration](const std::string& message) -> spv_result_t { in ValidateShadingRateAtDefinition()
3891 decoration.params()[0]) in ValidateShadingRateAtDefinition()
3900 return ValidateShadingRateAtReference(decoration, inst, inst, inst); in ValidateShadingRateAtDefinition()
3904 const Decoration& decoration, const Instruction& built_in_inst, in ValidateShadingRateAtReference() argument
3914 decoration.params()[0]) in ValidateShadingRateAtReference()
3916 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateShadingRateAtReference()
3926 decoration.params()[0]) in ValidateShadingRateAtReference()
3928 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateShadingRateAtReference()
3937 &BuiltInsValidator::ValidateShadingRateAtReference, this, decoration, in ValidateShadingRateAtReference()
3945 const Decoration& decoration, const Instruction& inst) { in ValidateRayTracingBuiltinsAtDefinition() argument
3947 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateRayTracingBuiltinsAtDefinition()
3954 decoration, inst, in ValidateRayTracingBuiltinsAtDefinition()
3977 decoration, inst, in ValidateRayTracingBuiltinsAtDefinition()
3998 decoration, inst, 3, in ValidateRayTracingBuiltinsAtDefinition()
4018 decoration, inst, 3, in ValidateRayTracingBuiltinsAtDefinition()
4038 decoration, inst, 3, 4, in ValidateRayTracingBuiltinsAtDefinition()
4062 return ValidateRayTracingBuiltinsAtReference(decoration, inst, inst, inst); in ValidateRayTracingBuiltinsAtDefinition()
4066 const Decoration& decoration, const Instruction& built_in_inst, in ValidateRayTracingBuiltinsAtReference() argument
4070 const SpvBuiltIn builtin = SpvBuiltIn(decoration.params()[0]); in ValidateRayTracingBuiltinsAtReference()
4078 decoration.params()[0]) in ValidateRayTracingBuiltinsAtReference()
4080 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateRayTracingBuiltinsAtReference()
4091 decoration.params()[0]) in ValidateRayTracingBuiltinsAtReference()
4096 << GetReferenceDesc(decoration, built_in_inst, referenced_inst, in ValidateRayTracingBuiltinsAtReference()
4106 this, decoration, built_in_inst, referenced_from_inst, in ValidateRayTracingBuiltinsAtReference()
4114 const Decoration& decoration, const Instruction& inst) { in ValidateSingleBuiltInAtDefinition() argument
4115 const SpvBuiltIn label = SpvBuiltIn(decoration.params()[0]); in ValidateSingleBuiltInAtDefinition()
4134 return ValidateClipOrCullDistanceAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4137 return ValidateFragCoordAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4140 return ValidateFragDepthAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4143 return ValidateFrontFacingAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4149 return ValidateComputeShaderI32Vec3InputAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4153 return ValidateFragmentShaderF32Vec3InputAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4156 return ValidateHelperInvocationAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4159 return ValidateInvocationIdAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4162 return ValidateInstanceIndexAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4166 return ValidateLayerOrViewportIndexAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4169 return ValidatePatchVerticesAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4172 return ValidatePointCoordAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4175 return ValidatePointSizeAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4178 return ValidatePositionAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4181 return ValidatePrimitiveIdAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4184 return ValidateSampleIdAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4187 return ValidateSampleMaskAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4190 return ValidateSamplePositionAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4194 return ValidateComputeI32InputAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4198 return ValidateI32InputAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4205 return ValidateI32Vec4InputAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4208 return ValidateTessCoordAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4211 return ValidateTessLevelOuterAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4214 return ValidateTessLevelInnerAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4217 return ValidateVertexIndexAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4220 return ValidateWorkgroupSizeAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4223 return ValidateVertexIdAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4226 return ValidateLocalInvocationIndexAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4237 return ValidateNVSMOrARMCoreBuiltinsAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4241 return ValidateBaseInstanceOrVertexAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4244 return ValidateDrawIndexAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4247 return ValidateViewIndexAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4250 return ValidateDeviceIndexAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4254 return ValidateFragInvocationCountAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4258 return ValidateFragSizeAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4261 return ValidateFragStencilRefAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4264 return ValidateFullyCoveredAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4286 return ValidateRayTracingBuiltinsAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4289 return ValidatePrimitiveShadingRateAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4292 return ValidateShadingRateAtDefinition(decoration, inst); in ValidateSingleBuiltInAtDefinition()
4312 for (const auto& decoration : kv.second) { in ValidateBuiltInsAtDefinition() local
4313 if (decoration.dec_type() != SpvDecorationBuiltIn) { in ValidateBuiltInsAtDefinition()
4318 ValidateSingleBuiltInAtDefinition(decoration, *inst)) { in ValidateBuiltInsAtDefinition()