dawn-cmake/test/unittest/reader/spirv/SpvModuleScopeVarParserTest...

27 lines
837 B
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 10
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %myconst "myconst"
OpName %main_1 "main_1"
OpName %main "main"
OpDecorate %myconst SpecId 12
%float = OpTypeFloat 32
%myconst = OpSpecConstant %float 2.5
%void = OpTypeVoid
%3 = OpTypeFunction %void
%main_1 = OpFunction %void None %3
%6 = OpLabel
OpReturn
OpFunctionEnd
%main = OpFunction %void None %3
%8 = OpLabel
%9 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd