blob: 081d37370fba70d65574ade0e0095374049d0433 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; 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 %in_block "in_block"
OpMemberName %in_block 0 "inner"
OpName %in "in"
OpName %out "out"
OpName %assign_and_preserve_padding_out "assign_and_preserve_padding_out"
OpName %value "value"
OpName %main "main"
OpDecorate %in_block Block
OpMemberDecorate %in_block 0 Offset 0
OpMemberDecorate %in_block 0 ColMajor
OpMemberDecorate %in_block 0 MatrixStride 8
OpDecorate %in NonWritable
OpDecorate %in DescriptorSet 0
OpDecorate %in Binding 0
OpDecorate %out DescriptorSet 0
OpDecorate %out Binding 1
%half = OpTypeFloat 16
%v3half = OpTypeVector %half 3
%mat2v3half = OpTypeMatrix %v3half 2
%in_block = OpTypeStruct %mat2v3half
%_ptr_StorageBuffer_in_block = OpTypePointer StorageBuffer %in_block
%in = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
%out = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
%void = OpTypeVoid
%8 = OpTypeFunction %void %mat2v3half
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%int = OpTypeInt 32 1
%16 = OpConstantNull %int
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
%19 = OpConstantNull %uint
%int_1 = OpConstant %int 1
%uint_1 = OpConstant %uint 1
%25 = OpTypeFunction %void
%_ptr_StorageBuffer_mat2v3half = OpTypePointer StorageBuffer %mat2v3half
%assign_and_preserve_padding_out = OpFunction %void None %8
%value = OpFunctionParameter %mat2v3half
%12 = OpLabel
%18 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %16
%20 = OpCompositeExtract %v3half %value 0
OpStore %18 %20
%22 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %int_1
%24 = OpCompositeExtract %v3half %value 1
OpStore %22 %24
OpReturn
OpFunctionEnd
%main = OpFunction %void None %25
%27 = OpLabel
%30 = OpAccessChain %_ptr_StorageBuffer_mat2v3half %in %uint_0
%31 = OpLoad %mat2v3half %30
%28 = OpFunctionCall %void %assign_and_preserve_padding_out %31
OpReturn
OpFunctionEnd