blob: 677b550a19d67fc2d15b7d72f68c47503161d764 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 22
; 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 %main "main"
OpName %OuterS "OuterS"
OpMemberName %OuterS 0 "v1"
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
%uint = OpTypeInt 32 0
%Uniforms = OpTypeStruct %uint
%_ptr_Uniform_Uniforms = OpTypePointer Uniform %Uniforms
%uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform
%void = OpTypeVoid
%5 = OpTypeFunction %void
%float = OpTypeFloat 32
%v3float = OpTypeVector %float 3
%OuterS = OpTypeStruct %v3float
%_ptr_Function_OuterS = OpTypePointer Function %OuterS
%14 = OpConstantNull %OuterS
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%_ptr_Function_float = OpTypePointer Function %float
%float_1 = OpConstant %float 1
%main = OpFunction %void None %5
%8 = OpLabel
%s1 = OpVariable %_ptr_Function_OuterS Function %14
%17 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
%18 = OpLoad %uint %17
%20 = OpAccessChain %_ptr_Function_float %s1 %uint_0 %18
OpStore %20 %float_1
OpReturn
OpFunctionEnd