blob: b4cdde10bd9e32fea7b41b99c29be3852c559259 [file] [edit]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 27
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpMemberName %Uniforms 0 "i"
OpMemberName %Uniforms 1 "j"
OpName %Uniforms "Uniforms"
OpMemberName %tint_symbol_1 0 "tint_symbol"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main "main"
OpName %m1 "m1"
OpMemberDecorate %Uniforms 0 Offset 0
OpMemberDecorate %Uniforms 1 Offset 4
OpMemberDecorate %tint_symbol_1 0 Offset 0
OpDecorate %tint_symbol_1 Block
OpDecorate %1 DescriptorSet 1
OpDecorate %1 Binding 4
OpDecorate %1 NonWritable
%uint = OpTypeInt 32 0
%Uniforms = OpTypeStruct %uint %uint
%tint_symbol_1 = OpTypeStruct %Uniforms
%_ptr_Uniform_tint_symbol_1 = OpTypePointer Uniform %tint_symbol_1
%1 = OpVariable %_ptr_Uniform_tint_symbol_1 Uniform
%void = OpTypeVoid
%8 = OpTypeFunction %void
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%mat2v4float = OpTypeMatrix %v4float 2
%_ptr_Function_mat2v4float = OpTypePointer Function %mat2v4float
%15 = OpConstantNull %mat2v4float
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%uint_0 = OpConstant %uint 0
%_ptr_Function_v4float = OpTypePointer Function %v4float
%_ptr_Function_float = OpTypePointer Function %float
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%float_1 = OpConstant %float 1
%main = OpFunction %void None %8
%9 = OpLabel
%m1 = OpVariable %_ptr_Function_mat2v4float Function %15
%16 = OpAccessChain %_ptr_Uniform_uint %1 %uint_0 %uint_0
%19 = OpLoad %uint %16 None
%20 = OpAccessChain %_ptr_Function_v4float %m1 %19
%22 = OpAccessChain %_ptr_Function_float %20 %int_0
OpStore %22 %float_1 None
OpReturn
OpFunctionEnd