blob: 585d88df0c8da5ccdc77539cd630b11550b7673b [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 54
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %u_block "u_block"
OpMemberName %u_block 0 "inner"
OpName %u "u"
OpName %s "s"
OpName %assign_and_preserve_padding_s "assign_and_preserve_padding_s"
OpName %value "value"
OpName %f "f"
OpDecorate %u_block Block
OpMemberDecorate %u_block 0 Offset 0
OpMemberDecorate %u_block 0 ColMajor
OpMemberDecorate %u_block 0 MatrixStride 16
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
OpDecorate %s DescriptorSet 0
OpDecorate %s Binding 1
%float = OpTypeFloat 32
%v3float = OpTypeVector %float 3
%mat4v3float = OpTypeMatrix %v3float 4
%u_block = OpTypeStruct %mat4v3float
%_ptr_Uniform_u_block = OpTypePointer Uniform %u_block
%u = OpVariable %_ptr_Uniform_u_block Uniform
%_ptr_StorageBuffer_u_block = OpTypePointer StorageBuffer %u_block
%s = OpVariable %_ptr_StorageBuffer_u_block StorageBuffer
%void = OpTypeVoid
%9 = OpTypeFunction %void %mat4v3float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%int = OpTypeInt 32 1
%17 = OpConstantNull %int
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
%20 = 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
%34 = OpTypeFunction %void
%_ptr_Uniform_mat4v3float = OpTypePointer Uniform %mat4v3float
%_ptr_Uniform_v3float = OpTypePointer Uniform %v3float
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%_ptr_Uniform_float = OpTypePointer Uniform %float
%assign_and_preserve_padding_s = OpFunction %void None %9
%value = OpFunctionParameter %mat4v3float
%13 = OpLabel
%19 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %17
%21 = OpCompositeExtract %v3float %value 0
OpStore %19 %21
%23 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %int_1
%25 = OpCompositeExtract %v3float %value 1
OpStore %23 %25
%27 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %int_2
%29 = OpCompositeExtract %v3float %value 2
OpStore %27 %29
%31 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %int_3
%33 = OpCompositeExtract %v3float %value 3
OpStore %31 %33
OpReturn
OpFunctionEnd
%f = OpFunction %void None %34
%36 = OpLabel
%39 = OpAccessChain %_ptr_Uniform_mat4v3float %u %uint_0
%40 = OpLoad %mat4v3float %39
%37 = OpFunctionCall %void %assign_and_preserve_padding_s %40
%41 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %int_1
%43 = OpAccessChain %_ptr_Uniform_v3float %u %uint_0 %17
%44 = OpLoad %v3float %43
OpStore %41 %44
%45 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %int_1
%46 = OpAccessChain %_ptr_Uniform_v3float %u %uint_0 %17
%47 = OpLoad %v3float %46
%48 = OpVectorShuffle %v3float %47 %47 2 0 1
OpStore %45 %48
%50 = OpAccessChain %_ptr_StorageBuffer_float %s %uint_0 %17 %int_1
%52 = OpAccessChain %_ptr_Uniform_float %u %uint_0 %int_1 %17
%53 = OpLoad %float %52
OpStore %50 %53
OpReturn
OpFunctionEnd