blob: db49aae00ffcf773491de8115a0837888ffb7802 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 40
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %data_block_std140 "data_block_std140"
OpMemberName %data_block_std140 0 "inner"
OpName %S_std140 "S_std140"
OpMemberName %S_std140 0 "matrix_0"
OpMemberName %S_std140 1 "matrix_1"
OpMemberName %S_std140 2 "matrix_2"
OpMemberName %S_std140 3 "vector"
OpName %data "data"
OpName %load_data_inner_matrix "load_data_inner_matrix"
OpName %main "main"
OpDecorate %data_block_std140 Block
OpMemberDecorate %data_block_std140 0 Offset 0
OpMemberDecorate %S_std140 0 Offset 0
OpMemberDecorate %S_std140 1 Offset 4
OpMemberDecorate %S_std140 2 Offset 8
OpMemberDecorate %S_std140 3 Offset 16
OpDecorate %data NonWritable
OpDecorate %data DescriptorSet 0
OpDecorate %data Binding 0
%half = OpTypeFloat 16
%v2half = OpTypeVector %half 2
%v3half = OpTypeVector %half 3
%S_std140 = OpTypeStruct %v2half %v2half %v2half %v3half
%data_block_std140 = OpTypeStruct %S_std140
%_ptr_Uniform_data_block_std140 = OpTypePointer Uniform %data_block_std140
%data = OpVariable %_ptr_Uniform_data_block_std140 Uniform
%mat3v2half = OpTypeMatrix %v2half 3
%8 = OpTypeFunction %mat3v2half
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_S_std140 = OpTypePointer Uniform %S_std140
%_ptr_Uniform_v2half = OpTypePointer Uniform %v2half
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%void = OpTypeVoid
%30 = OpTypeFunction %void
%uint_3 = OpConstant %uint 3
%_ptr_Uniform_v3half = OpTypePointer Uniform %v3half
%load_data_inner_matrix = OpFunction %mat3v2half None %8
%11 = OpLabel
%16 = OpAccessChain %_ptr_Uniform_S_std140 %data %uint_0
%19 = OpAccessChain %_ptr_Uniform_v2half %16 %uint_0
%20 = OpLoad %v2half %19
%23 = OpAccessChain %_ptr_Uniform_v2half %16 %uint_1
%24 = OpLoad %v2half %23
%27 = OpAccessChain %_ptr_Uniform_v2half %16 %uint_2
%28 = OpLoad %v2half %27
%29 = OpCompositeConstruct %mat3v2half %20 %24 %28
OpReturnValue %29
OpFunctionEnd
%main = OpFunction %void None %30
%33 = OpLabel
%34 = OpFunctionCall %mat3v2half %load_data_inner_matrix
%37 = OpAccessChain %_ptr_Uniform_v3half %data %uint_0 %uint_3
%38 = OpLoad %v3half %37
%39 = OpMatrixTimesVector %v2half %34 %38
OpReturn
OpFunctionEnd