blob: ec4bd59cf5df552c28669d77d604e72ed648245e [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 37
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %out_block "out_block"
OpMemberName %out_block 0 "inner"
OpName %out "out"
OpName %assign_and_preserve_padding_out "assign_and_preserve_padding_out"
OpName %value "value"
OpName %f "f"
OpName %m "m"
OpDecorate %out_block Block
OpMemberDecorate %out_block 0 Offset 0
OpMemberDecorate %out_block 0 ColMajor
OpMemberDecorate %out_block 0 MatrixStride 8
OpDecorate %out DescriptorSet 0
OpDecorate %out Binding 0
%half = OpTypeFloat 16
%v3half = OpTypeVector %half 3
%mat3v3half = OpTypeMatrix %v3half 3
%out_block = OpTypeStruct %mat3v3half
%_ptr_StorageBuffer_out_block = OpTypePointer StorageBuffer %out_block
%out = OpVariable %_ptr_StorageBuffer_out_block StorageBuffer
%void = OpTypeVoid
%7 = OpTypeFunction %void %mat3v3half
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%int = OpTypeInt 32 1
%15 = OpConstantNull %int
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
%18 = OpConstantNull %uint
%int_1 = OpConstant %int 1
%uint_1 = OpConstant %uint 1
%int_2 = OpConstant %int 2
%uint_2 = OpConstant %uint 2
%28 = OpTypeFunction %void
%31 = OpConstantNull %mat3v3half
%_ptr_Function_mat3v3half = OpTypePointer Function %mat3v3half
%assign_and_preserve_padding_out = OpFunction %void None %7
%value = OpFunctionParameter %mat3v3half
%11 = OpLabel
%17 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %15
%19 = OpCompositeExtract %v3half %value 0
OpStore %17 %19
%21 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %int_1
%23 = OpCompositeExtract %v3half %value 1
OpStore %21 %23
%25 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %int_2
%27 = OpCompositeExtract %v3half %value 2
OpStore %25 %27
OpReturn
OpFunctionEnd
%f = OpFunction %void None %28
%30 = OpLabel
%m = OpVariable %_ptr_Function_mat3v3half Function %31
OpStore %m %31
%36 = OpLoad %mat3v3half %m
%34 = OpFunctionCall %void %assign_and_preserve_padding_out %36
OpReturn
OpFunctionEnd