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

43 lines
1.5 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 24
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %x_1 "x_1"
OpName %x_2 "x_2"
OpName %x_3 "x_3"
OpName %x_4 "x_4"
OpName %main_1 "main_1"
OpName %main "main"
%bool = OpTypeBool
%false = OpConstantFalse %bool
%_ptr_Private_bool = OpTypePointer Private %bool
%x_1 = OpVariable %_ptr_Private_bool Private %false
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%_ptr_Private_int = OpTypePointer Private %int
%x_2 = OpVariable %_ptr_Private_int Private %int_0
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Private_uint = OpTypePointer Private %uint
%x_3 = OpVariable %_ptr_Private_uint Private %uint_0
%float = OpTypeFloat 32
%float_0 = OpConstant %float 0
%_ptr_Private_float = OpTypePointer Private %float
%x_4 = OpVariable %_ptr_Private_float Private %float_0
%void = OpTypeVoid
%17 = OpTypeFunction %void
%main_1 = OpFunction %void None %17
%20 = OpLabel
OpReturn
OpFunctionEnd
%main = OpFunction %void None %17
%22 = OpLabel
%23 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd