dawn-cmake/test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.spvasm

84 lines
3.7 KiB
Plaintext
Raw Normal View History

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 46
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %ssbo_block "ssbo_block"
OpMemberName %ssbo_block 0 "inner"
OpName %SSBO "SSBO"
OpMemberName %SSBO 0 "m"
OpName %strided_arr "strided_arr"
OpMemberName %strided_arr 0 "el"
OpName %ssbo "ssbo"
OpName %arr_to_mat2x2_stride_16 "arr_to_mat2x2_stride_16"
OpName %arr "arr"
OpName %mat2x2_stride_16_to_arr "mat2x2_stride_16_to_arr"
OpName %m "m"
OpName %f_1 "f_1"
OpName %f "f"
OpDecorate %ssbo_block Block
OpMemberDecorate %ssbo_block 0 Offset 0
OpMemberDecorate %SSBO 0 Offset 0
OpMemberDecorate %strided_arr 0 Offset 0
OpDecorate %_arr_strided_arr_uint_2 ArrayStride 16
OpDecorate %ssbo DescriptorSet 0
OpDecorate %ssbo Binding 0
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%strided_arr = OpTypeStruct %v2float
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_arr_strided_arr_uint_2 = OpTypeArray %strided_arr %uint_2
%SSBO = OpTypeStruct %_arr_strided_arr_uint_2
%ssbo_block = OpTypeStruct %SSBO
%_ptr_StorageBuffer_ssbo_block = OpTypePointer StorageBuffer %ssbo_block
%ssbo = OpVariable %_ptr_StorageBuffer_ssbo_block StorageBuffer
%mat2v2float = OpTypeMatrix %v2float 2
%11 = OpTypeFunction %mat2v2float %_arr_strided_arr_uint_2
%16 = OpConstantNull %uint
%uint_1 = OpConstant %uint 1
%23 = OpTypeFunction %_arr_strided_arr_uint_2 %mat2v2float
%void = OpTypeVoid
%32 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer__arr_strided_arr_uint_2 = OpTypePointer StorageBuffer %_arr_strided_arr_uint_2
%arr_to_mat2x2_stride_16 = OpFunction %mat2v2float None %11
%arr = OpFunctionParameter %_arr_strided_arr_uint_2
%15 = OpLabel
%17 = OpCompositeExtract %strided_arr %arr 0
%18 = OpCompositeExtract %v2float %17 0
%20 = OpCompositeExtract %strided_arr %arr 1
%21 = OpCompositeExtract %v2float %20 0
%22 = OpCompositeConstruct %mat2v2float %18 %21
OpReturnValue %22
OpFunctionEnd
%mat2x2_stride_16_to_arr = OpFunction %_arr_strided_arr_uint_2 None %23
%m = OpFunctionParameter %mat2v2float
%26 = OpLabel
%27 = OpCompositeExtract %v2float %m 0
%28 = OpCompositeConstruct %strided_arr %27
%29 = OpCompositeExtract %v2float %m 1
%30 = OpCompositeConstruct %strided_arr %29
%31 = OpCompositeConstruct %_arr_strided_arr_uint_2 %28 %30
OpReturnValue %31
OpFunctionEnd
%f_1 = OpFunction %void None %32
%35 = OpLabel
%39 = OpAccessChain %_ptr_StorageBuffer__arr_strided_arr_uint_2 %ssbo %uint_0 %uint_0
%40 = OpLoad %_arr_strided_arr_uint_2 %39
%36 = OpFunctionCall %mat2v2float %arr_to_mat2x2_stride_16 %40
%41 = OpFunctionCall %_arr_strided_arr_uint_2 %mat2x2_stride_16_to_arr %36
%42 = OpAccessChain %_ptr_StorageBuffer__arr_strided_arr_uint_2 %ssbo %uint_0 %uint_0
OpStore %42 %41
OpReturn
OpFunctionEnd
%f = OpFunction %void None %32
%44 = OpLabel
%45 = OpFunctionCall %void %f_1
OpReturn
OpFunctionEnd