2022-02-04 15:39:34 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-11-02 02:25:38 +00:00
|
|
|
; Bound: 43
|
2022-02-04 15:39:34 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint GLCompute %f "f"
|
|
|
|
OpExecutionMode %f LocalSize 1 1 1
|
2022-11-02 02:25:38 +00:00
|
|
|
OpName %s_block "s_block"
|
|
|
|
OpMemberName %s_block 0 "inner"
|
2022-02-04 15:39:34 +00:00
|
|
|
OpName %S "S"
|
|
|
|
OpMemberName %S 0 "a"
|
|
|
|
OpName %strided_arr_1 "strided_arr_1"
|
|
|
|
OpMemberName %strided_arr_1 0 "el"
|
|
|
|
OpName %strided_arr "strided_arr"
|
|
|
|
OpMemberName %strided_arr 0 "el"
|
|
|
|
OpName %s "s"
|
|
|
|
OpName %f_1 "f_1"
|
|
|
|
OpName %f "f"
|
2022-11-02 02:25:38 +00:00
|
|
|
OpDecorate %s_block Block
|
|
|
|
OpMemberDecorate %s_block 0 Offset 0
|
2022-02-04 15:39:34 +00:00
|
|
|
OpMemberDecorate %S 0 Offset 0
|
|
|
|
OpMemberDecorate %strided_arr_1 0 Offset 0
|
|
|
|
OpMemberDecorate %strided_arr 0 Offset 0
|
|
|
|
OpDecorate %_arr_strided_arr_uint_2 ArrayStride 8
|
|
|
|
OpDecorate %_arr__arr_strided_arr_uint_2_uint_3 ArrayStride 16
|
|
|
|
OpDecorate %_arr_strided_arr_1_uint_4 ArrayStride 128
|
|
|
|
OpDecorate %s DescriptorSet 0
|
|
|
|
OpDecorate %s Binding 0
|
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%strided_arr = OpTypeStruct %float
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%uint_2 = OpConstant %uint 2
|
|
|
|
%_arr_strided_arr_uint_2 = OpTypeArray %strided_arr %uint_2
|
|
|
|
%uint_3 = OpConstant %uint 3
|
|
|
|
%_arr__arr_strided_arr_uint_2_uint_3 = OpTypeArray %_arr_strided_arr_uint_2 %uint_3
|
|
|
|
%strided_arr_1 = OpTypeStruct %_arr__arr_strided_arr_uint_2_uint_3
|
|
|
|
%uint_4 = OpConstant %uint 4
|
|
|
|
%_arr_strided_arr_1_uint_4 = OpTypeArray %strided_arr_1 %uint_4
|
|
|
|
%S = OpTypeStruct %_arr_strided_arr_1_uint_4
|
2022-11-02 02:25:38 +00:00
|
|
|
%s_block = OpTypeStruct %S
|
|
|
|
%_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block
|
|
|
|
%s = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer
|
2022-02-04 15:39:34 +00:00
|
|
|
%void = OpTypeVoid
|
2022-11-02 02:25:38 +00:00
|
|
|
%15 = OpTypeFunction %void
|
2022-02-04 15:39:34 +00:00
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer__arr_strided_arr_1_uint_4 = OpTypePointer StorageBuffer %_arr_strided_arr_1_uint_4
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%int_3 = OpConstant %int 3
|
|
|
|
%_ptr_StorageBuffer__arr__arr_strided_arr_uint_2_uint_3 = OpTypePointer StorageBuffer %_arr__arr_strided_arr_uint_2_uint_3
|
|
|
|
%int_2 = OpConstant %int 2
|
|
|
|
%_ptr_StorageBuffer__arr_strided_arr_uint_2 = OpTypePointer StorageBuffer %_arr_strided_arr_uint_2
|
|
|
|
%int_1 = OpConstant %int 1
|
|
|
|
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
|
2022-11-02 02:25:38 +00:00
|
|
|
%37 = OpConstantNull %_arr_strided_arr_1_uint_4
|
2022-02-04 15:39:34 +00:00
|
|
|
%float_5 = OpConstant %float 5
|
2022-11-02 02:25:38 +00:00
|
|
|
%f_1 = OpFunction %void None %15
|
|
|
|
%18 = OpLabel
|
|
|
|
%21 = OpAccessChain %_ptr_StorageBuffer__arr_strided_arr_1_uint_4 %s %uint_0 %uint_0
|
|
|
|
%22 = OpLoad %_arr_strided_arr_1_uint_4 %21
|
|
|
|
%26 = OpAccessChain %_ptr_StorageBuffer__arr__arr_strided_arr_uint_2_uint_3 %s %uint_0 %uint_0 %int_3 %uint_0
|
|
|
|
%27 = OpLoad %_arr__arr_strided_arr_uint_2_uint_3 %26
|
|
|
|
%30 = OpAccessChain %_ptr_StorageBuffer__arr_strided_arr_uint_2 %s %uint_0 %uint_0 %int_3 %uint_0 %int_2
|
|
|
|
%31 = OpLoad %_arr_strided_arr_uint_2 %30
|
|
|
|
%34 = OpAccessChain %_ptr_StorageBuffer_float %s %uint_0 %uint_0 %int_3 %uint_0 %int_2 %int_1 %uint_0
|
|
|
|
%35 = OpLoad %float %34
|
|
|
|
%36 = OpAccessChain %_ptr_StorageBuffer__arr_strided_arr_1_uint_4 %s %uint_0 %uint_0
|
|
|
|
OpStore %36 %37
|
|
|
|
%38 = OpAccessChain %_ptr_StorageBuffer_float %s %uint_0 %uint_0 %int_3 %uint_0 %int_2 %int_1 %uint_0
|
|
|
|
OpStore %38 %float_5
|
2022-02-04 15:39:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-11-02 02:25:38 +00:00
|
|
|
%f = OpFunction %void None %15
|
|
|
|
%41 = OpLabel
|
|
|
|
%42 = OpFunctionCall %void %f_1
|
2022-02-04 15:39:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|