blob: b82d9229b105262e886dc80e54e4d5f7161543da [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Schema: 0
OpCapability Shader
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 16
OpDecorate %in NonWritable
OpDecorate %in DescriptorSet 0
OpDecorate %in Binding 0
OpDecorate %out DescriptorSet 0
OpDecorate %out Binding 1
%float = OpTypeFloat 32
%v3float = OpTypeVector %float 3
%mat2v3float = OpTypeMatrix %v3float 2
%in_block = OpTypeStruct %mat2v3float
%_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 %mat2v3float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%int = OpTypeInt 32 1
%16 = OpConstantNull %int
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
%19 = OpConstantNull %uint
%int_1 = OpConstant %int 1
%uint_1 = OpConstant %uint 1
%25 = OpTypeFunction %void
%_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float
%assign_and_preserve_padding_out = OpFunction %void None %8
%value = OpFunctionParameter %mat2v3float
%12 = OpLabel
%18 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %16
%20 = OpCompositeExtract %v3float %value 0
OpStore %18 %20
%22 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %int_1
%24 = OpCompositeExtract %v3float %value 1
OpStore %22 %24
OpReturn
OpFunctionEnd
%main = OpFunction %void None %25
%27 = OpLabel
%30 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %in %uint_0
%31 = OpLoad %mat2v3float %30
%28 = OpFunctionCall %void %assign_and_preserve_padding_out %31
OpReturn
OpFunctionEnd