blob: cf83de70d494511bab182edd8c1f6855fb80da7d [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 52
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %t "t"
OpName %unused_entry_point "unused_entry_point"
OpName %m "m"
OpName %f "f"
OpName %v "v"
%float = OpTypeFloat 32
%_ptr_Private_float = OpTypePointer Private %float
%4 = OpConstantNull %float
%t = OpVariable %_ptr_Private_float Private %4
%void = OpTypeVoid
%5 = OpTypeFunction %void
%v4float = OpTypeVector %float 4
%mat3v4float = OpTypeMatrix %v4float 3
%9 = OpTypeFunction %mat3v4float
%float_1 = OpConstant %float 1
%float_2 = OpConstant %float 2
%float_3 = OpConstant %float 3
%float_4 = OpConstant %float 4
%20 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
%float_5 = OpConstant %float 5
%float_6 = OpConstant %float 6
%float_7 = OpConstant %float 7
%float_8 = OpConstant %float 8
%25 = OpConstantComposite %v4float %float_5 %float_6 %float_7 %float_8
%float_9 = OpConstant %float 9
%float_10 = OpConstant %float 10
%float_11 = OpConstant %float 11
%float_12 = OpConstant %float 12
%30 = OpConstantComposite %v4float %float_9 %float_10 %float_11 %float_12
%31 = OpConstantComposite %mat3v4float %20 %25 %30
%half = OpTypeFloat 16
%v4half = OpTypeVector %half 4
%mat3v4half = OpTypeMatrix %v4half 3
%int = OpTypeInt 32 1
%40 = OpConstantNull %int
%int_1 = OpConstant %int 1
%int_2 = OpConstant %int 2
%_ptr_Function_mat3v4half = OpTypePointer Function %mat3v4half
%51 = OpConstantNull %mat3v4half
%unused_entry_point = OpFunction %void None %5
%8 = OpLabel
OpReturn
OpFunctionEnd
%m = OpFunction %mat3v4float None %9
%13 = OpLabel
%14 = OpLoad %float %t
%16 = OpFAdd %float %14 %float_1
OpStore %t %16
OpReturnValue %31
OpFunctionEnd
%f = OpFunction %void None %5
%33 = OpLabel
%v = OpVariable %_ptr_Function_mat3v4half Function %51
%34 = OpFunctionCall %mat3v4float %m
%41 = OpCompositeExtract %v4float %34 0
%38 = OpFConvert %v4half %41
%44 = OpCompositeExtract %v4float %34 1
%42 = OpFConvert %v4half %44
%47 = OpCompositeExtract %v4float %34 2
%45 = OpFConvert %v4half %47
%48 = OpCompositeConstruct %mat3v4half %38 %42 %45
OpStore %v %48
OpReturn
OpFunctionEnd