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

41 lines
1.5 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 21
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main_1 "main_1"
OpName %x_35 "x_35"
OpName %x_2_1 "x_2_1"
OpName %main "main"
OpDecorate %_arr_uint_uint_5 ArrayStride 4
%void = OpTypeVoid
%1 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_5 = OpConstant %uint 5
%_arr_uint_uint_5 = OpTypeArray %uint %uint_5
%_ptr_Function__arr_uint_uint_5 = OpTypePointer Function %_arr_uint_uint_5
%10 = OpConstantNull %_arr_uint_uint_5
%uint_3 = OpConstant %uint 3
%_ptr_Function_uint = OpTypePointer Function %uint
%uint_20 = OpConstant %uint 20
%main_1 = OpFunction %void None %1
%4 = OpLabel
%x_35 = OpVariable %_ptr_Function__arr_uint_uint_5 Function %10
%x_2_1 = OpVariable %_ptr_Function__arr_uint_uint_5 Function %10
%11 = OpLoad %_arr_uint_uint_5 %x_35
OpStore %x_2_1 %11
%15 = OpAccessChain %_ptr_Function_uint %x_2_1 %uint_3
OpStore %15 %uint_20
%17 = OpLoad %_arr_uint_uint_5 %x_2_1
OpReturn
OpFunctionEnd
%main = OpFunction %void None %1
%19 = OpLabel
%20 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd