blob: 00afa201276a95089cddbffe6d938a7e7cedf063 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 39
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %u_block_std140 "u_block_std140"
OpMemberName %u_block_std140 0 "inner"
OpName %S_std140 "S_std140"
OpMemberName %S_std140 0 "inner"
OpName %Inner_std140 "Inner_std140"
OpMemberName %Inner_std140 0 "scalar_f16"
OpMemberName %Inner_std140 1 "vec3_f16"
OpMemberName %Inner_std140 2 "mat2x4_f16_0"
OpMemberName %Inner_std140 3 "mat2x4_f16_1"
OpName %u "u"
OpName %Inner "Inner"
OpMemberName %Inner 0 "scalar_f16"
OpMemberName %Inner 1 "vec3_f16"
OpMemberName %Inner 2 "mat2x4_f16"
OpName %conv_Inner "conv_Inner"
OpName %val "val"
OpName %S "S"
OpMemberName %S 0 "inner"
OpName %conv_S "conv_S"
OpName %val_0 "val"
OpName %main "main"
OpDecorate %u_block_std140 Block
OpMemberDecorate %u_block_std140 0 Offset 0
OpMemberDecorate %S_std140 0 Offset 0
OpMemberDecorate %Inner_std140 0 Offset 0
OpMemberDecorate %Inner_std140 1 Offset 8
OpMemberDecorate %Inner_std140 2 Offset 16
OpMemberDecorate %Inner_std140 3 Offset 24
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
OpMemberDecorate %Inner 0 Offset 0
OpMemberDecorate %Inner 1 Offset 8
OpMemberDecorate %Inner 2 Offset 16
OpMemberDecorate %Inner 2 ColMajor
OpMemberDecorate %Inner 2 MatrixStride 8
OpMemberDecorate %S 0 Offset 0
%half = OpTypeFloat 16
%v3half = OpTypeVector %half 3
%v4half = OpTypeVector %half 4
%Inner_std140 = OpTypeStruct %half %v3half %v4half %v4half
%S_std140 = OpTypeStruct %Inner_std140
%u_block_std140 = OpTypeStruct %S_std140
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat2v4half = OpTypeMatrix %v4half 2
%Inner = OpTypeStruct %half %v3half %mat2v4half
%9 = OpTypeFunction %Inner %Inner_std140
%S = OpTypeStruct %Inner
%21 = OpTypeFunction %S %S_std140
%void = OpTypeVoid
%29 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_S_std140 = OpTypePointer Uniform %S_std140
%conv_Inner = OpFunction %Inner None %9
%val = OpFunctionParameter %Inner_std140
%14 = OpLabel
%15 = OpCompositeExtract %half %val 0
%16 = OpCompositeExtract %v3half %val 1
%17 = OpCompositeExtract %v4half %val 2
%18 = OpCompositeExtract %v4half %val 3
%19 = OpCompositeConstruct %mat2v4half %17 %18
%20 = OpCompositeConstruct %Inner %15 %16 %19
OpReturnValue %20
OpFunctionEnd
%conv_S = OpFunction %S None %21
%val_0 = OpFunctionParameter %S_std140
%25 = OpLabel
%27 = OpCompositeExtract %Inner_std140 %val_0 0
%26 = OpFunctionCall %Inner %conv_Inner %27
%28 = OpCompositeConstruct %S %26
OpReturnValue %28
OpFunctionEnd
%main = OpFunction %void None %29
%32 = OpLabel
%37 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0
%38 = OpLoad %S_std140 %37
%33 = OpFunctionCall %S %conv_S %38
OpReturn
OpFunctionEnd