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

34 lines
1.2 KiB
Plaintext
Raw Normal View History

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 17
; 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 %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
%main_1 = OpFunction %void None %1
%4 = OpLabel
%x_35 = OpVariable %_ptr_Function__arr_uint_uint_5 Function %10
%11 = OpLoad %_arr_uint_uint_5 %x_35
%13 = OpCompositeExtract %uint %11 3
OpReturn
OpFunctionEnd
%main = OpFunction %void None %1
%15 = OpLabel
%16 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd