blob: 57ac421f5dcece8fa2609b48c03930733952158c [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 57
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpMemberName %u_block_std140 0 "inner_col0"
OpMemberName %u_block_std140 1 "inner_col1"
OpMemberName %u_block_std140 2 "inner_col2"
OpMemberName %u_block_std140 3 "inner_col3"
OpName %u_block_std140 "u_block_std140"
OpMemberName %s_block 0 "inner"
OpName %s_block "s_block"
OpName %f "f"
OpName %tint_store_and_preserve_padding "tint_store_and_preserve_padding"
OpName %value_param "value_param"
OpMemberDecorate %u_block_std140 0 Offset 0
OpMemberDecorate %u_block_std140 1 Offset 8
OpMemberDecorate %u_block_std140 2 Offset 16
OpMemberDecorate %u_block_std140 3 Offset 24
OpDecorate %u_block_std140 Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 NonWritable
OpMemberDecorate %s_block 0 Offset 0
OpMemberDecorate %s_block 0 ColMajor
OpMemberDecorate %s_block 0 MatrixStride 8
OpDecorate %s_block Block
OpDecorate %6 DescriptorSet 0
OpDecorate %6 Binding 1
OpDecorate %6 Coherent
%half = OpTypeFloat 16
%v3half = OpTypeVector %half 3
%u_block_std140 = OpTypeStruct %v3half %v3half %v3half %v3half
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%1 = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat4v3half = OpTypeMatrix %v3half 4
%s_block = OpTypeStruct %mat4v3half
%_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block
%6 = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer
%void = OpTypeVoid
%12 = OpTypeFunction %void
%_ptr_Uniform_v3half = OpTypePointer Uniform %v3half
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%uint_3 = OpConstant %uint 3
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
%_ptr_Uniform_half = OpTypePointer Uniform %half
%_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half
%47 = OpTypeFunction %void %mat4v3half
%f = OpFunction %void None %12
%13 = OpLabel
%14 = OpAccessChain %_ptr_Uniform_v3half %1 %uint_0
%18 = OpLoad %v3half %14 None
%19 = OpAccessChain %_ptr_Uniform_v3half %1 %uint_1
%21 = OpLoad %v3half %19 None
%22 = OpAccessChain %_ptr_Uniform_v3half %1 %uint_2
%24 = OpLoad %v3half %22 None
%25 = OpAccessChain %_ptr_Uniform_v3half %1 %uint_3
%27 = OpLoad %v3half %25 None
%28 = OpCompositeConstruct %mat4v3half %18 %21 %24 %27
%29 = OpFunctionCall %void %tint_store_and_preserve_padding %28
%31 = OpAccessChain %_ptr_StorageBuffer_v3half %6 %uint_0 %uint_1
%33 = OpAccessChain %_ptr_Uniform_v3half %1 %uint_0
%34 = OpLoad %v3half %33 None
OpStore %31 %34 None
%35 = OpAccessChain %_ptr_StorageBuffer_v3half %6 %uint_0 %uint_1
%36 = OpAccessChain %_ptr_Uniform_v3half %1 %uint_0
%37 = OpLoad %v3half %36 None
%38 = OpVectorShuffle %v3half %37 %37 2 0 1
OpStore %35 %38 None
%39 = OpAccessChain %_ptr_StorageBuffer_v3half %6 %uint_0 %uint_0
%40 = OpAccessChain %_ptr_Uniform_v3half %1 %uint_1
%41 = OpAccessChain %_ptr_Uniform_half %40 %uint_0
%43 = OpLoad %half %41 None
%44 = OpAccessChain %_ptr_StorageBuffer_half %39 %uint_1
OpStore %44 %43 None
OpReturn
OpFunctionEnd
%tint_store_and_preserve_padding = OpFunction %void None %47
%value_param = OpFunctionParameter %mat4v3half
%48 = OpLabel
%49 = OpAccessChain %_ptr_StorageBuffer_v3half %6 %uint_0 %uint_0
%50 = OpCompositeExtract %v3half %value_param 0
OpStore %49 %50 None
%51 = OpAccessChain %_ptr_StorageBuffer_v3half %6 %uint_0 %uint_1
%52 = OpCompositeExtract %v3half %value_param 1
OpStore %51 %52 None
%53 = OpAccessChain %_ptr_StorageBuffer_v3half %6 %uint_0 %uint_2
%54 = OpCompositeExtract %v3half %value_param 2
OpStore %53 %54 None
%55 = OpAccessChain %_ptr_StorageBuffer_v3half %6 %uint_0 %uint_3
%56 = OpCompositeExtract %v3half %value_param 3
OpStore %55 %56 None
OpReturn
OpFunctionEnd