2022-09-09 16:04:39 +00:00
|
|
|
; flags: --transform substitute_override
|
|
|
|
;
|
2021-07-30 16:03:06 +00:00
|
|
|
; Test: SpvModuleScopeVarParserTest_ScalarSpecConstant_DeclareConst_I32.spvasm
|
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.0
|
|
|
|
; Generator: Khronos SPIR-V Tools Assembler; 0
|
|
|
|
; Bound: 7
|
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical Simple
|
|
|
|
OpEntryPoint Fragment %1 "main"
|
|
|
|
OpExecutionMode %1 OriginUpperLeft
|
|
|
|
OpName %myconst "myconst"
|
|
|
|
OpDecorate %myconst SpecId 12
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%myconst = OpSpecConstant %int 42
|
|
|
|
%void = OpTypeVoid
|
|
|
|
%5 = OpTypeFunction %void
|
|
|
|
%1 = OpFunction %void None %5
|
|
|
|
%6 = OpLabel
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
|