blob: c8f3dd41cccea307de3f430346dd181fa2394e77 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 40
; 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
%mat4v3float = OpTypeMatrix %v3float 4
%in_block = OpTypeStruct %mat4v3float
%_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 %mat4v3float
%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
%int_3 = OpConstant %int 3
%uint_3 = OpConstant %uint 3
%33 = OpTypeFunction %void
%_ptr_StorageBuffer_mat4v3float = OpTypePointer StorageBuffer %mat4v3float
%assign_and_preserve_padding_out = OpFunction %void None %8
%value = OpFunctionParameter %mat4v3float
%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
%30 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %int_3
%32 = OpCompositeExtract %v3float %value 3
OpStore %30 %32
OpReturn
OpFunctionEnd
%main = OpFunction %void None %33
%35 = OpLabel
%38 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %in %uint_0
%39 = OpLoad %mat4v3float %38
%36 = OpFunctionCall %void %assign_and_preserve_padding_out %39
OpReturn
OpFunctionEnd