blob: 51fda12340954caa3dec33902bd71f06caf582ed [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 20
; 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 "arr"
OpName %S "S"
OpName %func_S_arr "func_S_arr"
OpName %main "main"
OpDecorate %S_block Block
OpMemberDecorate %S_block 0 Offset 0
OpMemberDecorate %str 0 Offset 0
OpDecorate %_arr_int_uint_4 ArrayStride 4
OpDecorate %S DescriptorSet 0
OpDecorate %S Binding 0
%int = OpTypeInt 32 1
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_int_uint_4 = OpTypeArray %int %uint_4
%str = OpTypeStruct %_arr_int_uint_4
%S_block = OpTypeStruct %str
%_ptr_StorageBuffer_S_block = OpTypePointer StorageBuffer %S_block
%S = OpVariable %_ptr_StorageBuffer_S_block StorageBuffer
%void = OpTypeVoid
%9 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer__arr_int_uint_4 = OpTypePointer StorageBuffer %_arr_int_uint_4
%16 = OpConstantNull %_arr_int_uint_4
%func_S_arr = OpFunction %void None %9
%12 = OpLabel
%15 = OpAccessChain %_ptr_StorageBuffer__arr_int_uint_4 %S %uint_0 %uint_0
OpStore %15 %16
OpReturn
OpFunctionEnd
%main = OpFunction %void None %9
%18 = OpLabel
%19 = OpFunctionCall %void %func_S_arr
OpReturn
OpFunctionEnd