blob: 504825bc9dd46218bfed8fc8a7d9e4b8444d37f6 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %uniforms_block "uniforms_block"
OpMemberName %uniforms_block 0 "inner"
OpName %Uniforms "Uniforms"
OpMemberName %Uniforms 0 "i"
OpMemberName %Uniforms 1 "j"
OpName %uniforms "uniforms"
OpName %OuterS "OuterS"
OpMemberName %OuterS 0 "a1"
OpName %S1 "S1"
OpMemberName %S1 0 "a2"
OpName %InnerS "InnerS"
OpMemberName %InnerS 0 "v"
OpName %s "s"
OpName %main "main"
OpName %v "v"
OpDecorate %uniforms_block Block
OpMemberDecorate %uniforms_block 0 Offset 0
OpMemberDecorate %Uniforms 0 Offset 0
OpMemberDecorate %Uniforms 1 Offset 4
OpDecorate %uniforms NonWritable
OpDecorate %uniforms DescriptorSet 1
OpDecorate %uniforms Binding 4
OpDecorate %OuterS Block
OpMemberDecorate %OuterS 0 Offset 0
OpMemberDecorate %S1 0 Offset 0
OpMemberDecorate %InnerS 0 Offset 0
OpDecorate %_arr_InnerS_uint_8 ArrayStride 4
OpDecorate %_runtimearr_S1 ArrayStride 32
OpDecorate %s Binding 0
OpDecorate %s DescriptorSet 0
%uint = OpTypeInt 32 0
%Uniforms = OpTypeStruct %uint %uint
%uniforms_block = OpTypeStruct %Uniforms
%_ptr_Uniform_uniforms_block = OpTypePointer Uniform %uniforms_block
%uniforms = OpVariable %_ptr_Uniform_uniforms_block Uniform
%int = OpTypeInt 32 1
%InnerS = OpTypeStruct %int
%uint_8 = OpConstant %uint 8
%_arr_InnerS_uint_8 = OpTypeArray %InnerS %uint_8
%S1 = OpTypeStruct %_arr_InnerS_uint_8
%_runtimearr_S1 = OpTypeRuntimeArray %S1
%OuterS = OpTypeStruct %_runtimearr_S1
%_ptr_StorageBuffer_OuterS = OpTypePointer StorageBuffer %OuterS
%s = OpVariable %_ptr_StorageBuffer_OuterS StorageBuffer
%void = OpTypeVoid
%15 = OpTypeFunction %void
%_ptr_Function_InnerS = OpTypePointer Function %InnerS
%21 = OpConstantNull %InnerS
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%uint_1 = OpConstant %uint 1
%_ptr_StorageBuffer_InnerS = OpTypePointer StorageBuffer %InnerS
%main = OpFunction %void None %15
%18 = OpLabel
%v = OpVariable %_ptr_Function_InnerS Function %21
%24 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0 %uint_0
%25 = OpLoad %uint %24
%27 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0 %uint_1
%28 = OpLoad %uint %27
%30 = OpAccessChain %_ptr_StorageBuffer_InnerS %s %uint_0 %25 %uint_0 %28
%31 = OpLoad %InnerS %v
OpStore %30 %31
OpReturn
OpFunctionEnd