blob: ba2078808c1c30c0e1f05f7993c55839490769d1 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 48
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %u_block "u_block"
OpMemberName %u_block 0 "inner"
OpName %u "u"
OpName %a "a"
OpName %m "m"
OpName %b "b"
OpName %v "v"
OpName %c "c"
OpName %f_1 "f_1"
OpName %f "f"
OpDecorate %u_block Block
OpMemberDecorate %u_block 0 Offset 0
OpMemberDecorate %u_block 0 ColMajor
OpMemberDecorate %u_block 0 MatrixStride 16
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%mat4v4float = OpTypeMatrix %v4float 4
%u_block = OpTypeStruct %mat4v4float
%_ptr_Uniform_u_block = OpTypePointer Uniform %u_block
%u = OpVariable %_ptr_Uniform_u_block Uniform
%void = OpTypeVoid
%7 = OpTypeFunction %void %mat4v4float
%12 = OpTypeFunction %void %v4float
%16 = OpTypeFunction %void %float
%20 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_mat4v4float = OpTypePointer Uniform %mat4v4float
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%_ptr_Uniform_float = OpTypePointer Uniform %float
%a = OpFunction %void None %7
%m = OpFunctionParameter %mat4v4float
%11 = OpLabel
OpReturn
OpFunctionEnd
%b = OpFunction %void None %12
%v = OpFunctionParameter %v4float
%15 = OpLabel
OpReturn
OpFunctionEnd
%c = OpFunction %void None %16
%f_1 = OpFunctionParameter %float
%19 = OpLabel
OpReturn
OpFunctionEnd
%f = OpFunction %void None %20
%22 = OpLabel
%27 = OpAccessChain %_ptr_Uniform_mat4v4float %u %uint_0
%28 = OpLoad %mat4v4float %27
%23 = OpFunctionCall %void %a %28
%33 = OpAccessChain %_ptr_Uniform_v4float %u %uint_0 %int_1
%34 = OpLoad %v4float %33
%29 = OpFunctionCall %void %b %34
%36 = OpAccessChain %_ptr_Uniform_v4float %u %uint_0 %int_1
%37 = OpLoad %v4float %36
%38 = OpVectorShuffle %v4float %37 %37 1 3 0 2
%35 = OpFunctionCall %void %b %38
%41 = OpAccessChain %_ptr_Uniform_float %u %uint_0 %int_1 %uint_0
%42 = OpLoad %float %41
%39 = OpFunctionCall %void %c %42
%44 = OpAccessChain %_ptr_Uniform_v4float %u %uint_0 %int_1
%45 = OpLoad %v4float %44
%46 = OpVectorShuffle %v4float %45 %45 1 3 0 2
%47 = OpCompositeExtract %float %46 0
%43 = OpFunctionCall %void %c %47
OpReturn
OpFunctionEnd