blob: 2d564ac39a330f499916876680e40ff5f786aac0 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 36
; 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
%mat3v3float = OpTypeMatrix %v3float 3
%in_block = OpTypeStruct %mat3v3float
%_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 %mat3v3float
%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
%int_2 = OpConstant %int 2
%uint_2 = OpConstant %uint 2
%29 = OpTypeFunction %void
%_ptr_StorageBuffer_mat3v3float = OpTypePointer StorageBuffer %mat3v3float
%assign_and_preserve_padding_out = OpFunction %void None %8
%value = OpFunctionParameter %mat3v3float
%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
%26 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %int_2
%28 = OpCompositeExtract %v3float %value 2
OpStore %26 %28
OpReturn
OpFunctionEnd
%main = OpFunction %void None %29
%31 = OpLabel
%34 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %in %uint_0
%35 = OpLoad %mat3v3float %34
%32 = OpFunctionCall %void %assign_and_preserve_padding_out %35
OpReturn
OpFunctionEnd