blob: 0f9e29d8e6d2274661415b99cab135b6ed13904b [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 36
; 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 %u "u"
OpName %unused_entry_point "unused_entry_point"
OpName %f "f"
OpName %v "v"
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%mat2v2float = OpTypeMatrix %v2float 2
%float_1 = OpConstant %float 1
%float_2 = OpConstant %float 2
%6 = OpConstantComposite %v2float %float_1 %float_2
%float_3 = OpConstant %float 3
%float_4 = OpConstant %float 4
%9 = OpConstantComposite %v2float %float_3 %float_4
%10 = OpConstantComposite %mat2v2float %6 %9
%_ptr_Private_mat2v2float = OpTypePointer Private %mat2v2float
%u = OpVariable %_ptr_Private_mat2v2float Private %10
%void = OpTypeVoid
%13 = OpTypeFunction %void
%half = OpTypeFloat 16
%v2half = OpTypeVector %half 2
%mat2v2half = OpTypeMatrix %v2half 2
%int = OpTypeInt 32 1
%24 = OpConstantNull %int
%_ptr_Private_v2float = OpTypePointer Private %v2float
%int_1 = OpConstant %int 1
%_ptr_Function_mat2v2half = OpTypePointer Function %mat2v2half
%35 = OpConstantNull %mat2v2half
%unused_entry_point = OpFunction %void None %13
%16 = OpLabel
OpReturn
OpFunctionEnd
%f = OpFunction %void None %13
%18 = OpLabel
%v = OpVariable %_ptr_Function_mat2v2half Function %35
%26 = OpAccessChain %_ptr_Private_v2float %u %24
%27 = OpLoad %v2float %26
%22 = OpFConvert %v2half %27
%30 = OpAccessChain %_ptr_Private_v2float %u %int_1
%31 = OpLoad %v2float %30
%28 = OpFConvert %v2half %31
%32 = OpCompositeConstruct %mat2v2half %22 %28
OpStore %v %32
OpReturn
OpFunctionEnd