blob: 190781a77abcad20be8a1779302f5e6a193db6f3 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 28
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %S_block "S_block"
OpMemberName %S_block 0 "inner"
OpName %str "str"
OpMemberName %str 0 "i"
OpName %S "S"
OpName %func_S_X "func_S_X"
OpName %pointer "pointer"
OpName %main "main"
OpDecorate %S_block Block
OpMemberDecorate %S_block 0 Offset 0
OpMemberDecorate %str 0 Offset 0
OpDecorate %_arr_str_uint_4 ArrayStride 4
OpDecorate %S DescriptorSet 0
OpDecorate %S Binding 0
OpDecorate %_arr_uint_uint_1 ArrayStride 4
%int = OpTypeInt 32 1
%str = OpTypeStruct %int
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_str_uint_4 = OpTypeArray %str %uint_4
%S_block = OpTypeStruct %_arr_str_uint_4
%_ptr_StorageBuffer_S_block = OpTypePointer StorageBuffer %S_block
%S = OpVariable %_ptr_StorageBuffer_S_block StorageBuffer
%void = OpTypeVoid
%uint_1 = OpConstant %uint 1
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%9 = OpTypeFunction %void %_arr_uint_uint_1
%uint_0 = OpConstant %uint 0
%17 = OpConstantNull %int
%_ptr_StorageBuffer_str = OpTypePointer StorageBuffer %str
%21 = OpConstantNull %str
%22 = OpTypeFunction %void
%uint_2 = OpConstant %uint 2
%27 = OpConstantComposite %_arr_uint_uint_1 %uint_2
%func_S_X = OpFunction %void None %9
%pointer = OpFunctionParameter %_arr_uint_uint_1
%15 = OpLabel
%18 = OpCompositeExtract %uint %pointer 0
%20 = OpAccessChain %_ptr_StorageBuffer_str %S %uint_0 %18
OpStore %20 %21
OpReturn
OpFunctionEnd
%main = OpFunction %void None %22
%24 = OpLabel
%25 = OpFunctionCall %void %func_S_X %27
OpReturn
OpFunctionEnd