blob: bfda721ac744f1d809e7d4c0d359b98186eb7e10 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 33
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %Uniforms "Uniforms"
OpMemberName %Uniforms 0 "i"
OpName %uniforms "uniforms"
OpName %OuterS "OuterS"
OpMemberName %OuterS 0 "a1"
OpName %InnerS "InnerS"
OpMemberName %InnerS 0 "v"
OpName %f "f"
OpName %p "p"
OpName %v "v"
OpName %main "main"
OpName %s1 "s1"
OpDecorate %Uniforms Block
OpMemberDecorate %Uniforms 0 Offset 0
OpDecorate %uniforms NonWritable
OpDecorate %uniforms DescriptorSet 1
OpDecorate %uniforms Binding 4
OpMemberDecorate %OuterS 0 Offset 0
OpMemberDecorate %InnerS 0 Offset 0
OpDecorate %_arr_InnerS_uint_8 ArrayStride 4
%uint = OpTypeInt 32 0
%Uniforms = OpTypeStruct %uint
%_ptr_Uniform_Uniforms = OpTypePointer Uniform %Uniforms
%uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform
%void = OpTypeVoid
%int = OpTypeInt 32 1
%InnerS = OpTypeStruct %int
%uint_8 = OpConstant %uint 8
%_arr_InnerS_uint_8 = OpTypeArray %InnerS %uint_8
%OuterS = OpTypeStruct %_arr_InnerS_uint_8
%_ptr_Function_OuterS = OpTypePointer Function %OuterS
%5 = OpTypeFunction %void %_ptr_Function_OuterS
%_ptr_Function_InnerS = OpTypePointer Function %InnerS
%18 = OpConstantNull %InnerS
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%26 = OpTypeFunction %void
%30 = OpConstantNull %OuterS
%f = OpFunction %void None %5
%p = OpFunctionParameter %_ptr_Function_OuterS
%15 = OpLabel
%v = OpVariable %_ptr_Function_InnerS Function %18
%22 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
%23 = OpLoad %uint %22
%24 = OpAccessChain %_ptr_Function_InnerS %p %uint_0 %23
%25 = OpLoad %InnerS %v
OpStore %24 %25
OpReturn
OpFunctionEnd
%main = OpFunction %void None %26
%28 = OpLabel
%s1 = OpVariable %_ptr_Function_OuterS Function %30
%31 = OpFunctionCall %void %f %s1
OpReturn
OpFunctionEnd