2021-07-13 12:18:13 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-11-30 02:47:27 +00:00
|
|
|
; Bound: 175
|
2021-07-13 12:18:13 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint GLCompute %main "main"
|
|
|
|
OpExecutionMode %main LocalSize 1 1 1
|
2022-11-30 02:47:27 +00:00
|
|
|
OpName %ub_block_std140 "ub_block_std140"
|
|
|
|
OpMemberName %ub_block_std140 0 "inner"
|
2022-09-01 22:12:19 +00:00
|
|
|
OpName %S_std140 "S_std140"
|
2022-11-30 02:47:27 +00:00
|
|
|
OpMemberName %S_std140 0 "scalar_f32"
|
|
|
|
OpMemberName %S_std140 1 "scalar_i32"
|
|
|
|
OpMemberName %S_std140 2 "scalar_u32"
|
|
|
|
OpMemberName %S_std140 3 "vec2_f32"
|
|
|
|
OpMemberName %S_std140 4 "vec2_i32"
|
|
|
|
OpMemberName %S_std140 5 "vec2_u32"
|
|
|
|
OpMemberName %S_std140 6 "vec3_f32"
|
|
|
|
OpMemberName %S_std140 7 "vec3_i32"
|
|
|
|
OpMemberName %S_std140 8 "vec3_u32"
|
|
|
|
OpMemberName %S_std140 9 "vec4_f32"
|
|
|
|
OpMemberName %S_std140 10 "vec4_i32"
|
|
|
|
OpMemberName %S_std140 11 "vec4_u32"
|
|
|
|
OpMemberName %S_std140 12 "mat2x2_f32_0"
|
|
|
|
OpMemberName %S_std140 13 "mat2x2_f32_1"
|
|
|
|
OpMemberName %S_std140 14 "mat2x3_f32"
|
|
|
|
OpMemberName %S_std140 15 "mat2x4_f32"
|
|
|
|
OpMemberName %S_std140 16 "mat3x2_f32_0"
|
|
|
|
OpMemberName %S_std140 17 "mat3x2_f32_1"
|
|
|
|
OpMemberName %S_std140 18 "mat3x2_f32_2"
|
|
|
|
OpMemberName %S_std140 19 "mat3x3_f32"
|
|
|
|
OpMemberName %S_std140 20 "mat3x4_f32"
|
|
|
|
OpMemberName %S_std140 21 "mat4x2_f32_0"
|
|
|
|
OpMemberName %S_std140 22 "mat4x2_f32_1"
|
|
|
|
OpMemberName %S_std140 23 "mat4x2_f32_2"
|
|
|
|
OpMemberName %S_std140 24 "mat4x2_f32_3"
|
|
|
|
OpMemberName %S_std140 25 "mat4x3_f32"
|
|
|
|
OpMemberName %S_std140 26 "mat4x4_f32"
|
|
|
|
OpMemberName %S_std140 27 "arr2_vec3_f32"
|
|
|
|
OpMemberName %S_std140 28 "struct_inner"
|
2021-07-13 12:18:13 +00:00
|
|
|
OpName %Inner "Inner"
|
2022-11-30 02:47:27 +00:00
|
|
|
OpMemberName %Inner 0 "scalar_i32"
|
|
|
|
OpMemberName %Inner 1 "scalar_f32"
|
|
|
|
OpMemberName %S_std140 29 "array_struct_inner"
|
|
|
|
OpName %ub "ub"
|
|
|
|
OpName %load_ub_inner_mat2x2_f32 "load_ub_inner_mat2x2_f32"
|
|
|
|
OpName %load_ub_inner_mat3x2_f32 "load_ub_inner_mat3x2_f32"
|
|
|
|
OpName %load_ub_inner_mat4x2_f32 "load_ub_inner_mat4x2_f32"
|
2021-07-13 12:18:13 +00:00
|
|
|
OpName %main "main"
|
2022-11-30 02:47:27 +00:00
|
|
|
OpDecorate %ub_block_std140 Block
|
|
|
|
OpMemberDecorate %ub_block_std140 0 Offset 0
|
2022-09-01 22:12:19 +00:00
|
|
|
OpMemberDecorate %S_std140 0 Offset 0
|
2022-11-30 02:47:27 +00:00
|
|
|
OpMemberDecorate %S_std140 1 Offset 4
|
|
|
|
OpMemberDecorate %S_std140 2 Offset 8
|
|
|
|
OpMemberDecorate %S_std140 3 Offset 16
|
|
|
|
OpMemberDecorate %S_std140 4 Offset 24
|
|
|
|
OpMemberDecorate %S_std140 5 Offset 32
|
2022-09-01 22:12:19 +00:00
|
|
|
OpMemberDecorate %S_std140 6 Offset 48
|
2022-11-30 02:47:27 +00:00
|
|
|
OpMemberDecorate %S_std140 7 Offset 64
|
|
|
|
OpMemberDecorate %S_std140 8 Offset 80
|
2022-09-01 22:12:19 +00:00
|
|
|
OpMemberDecorate %S_std140 9 Offset 96
|
2022-11-30 02:47:27 +00:00
|
|
|
OpMemberDecorate %S_std140 10 Offset 112
|
|
|
|
OpMemberDecorate %S_std140 11 Offset 128
|
|
|
|
OpMemberDecorate %S_std140 12 Offset 144
|
|
|
|
OpMemberDecorate %S_std140 13 Offset 152
|
|
|
|
OpMemberDecorate %S_std140 14 Offset 160
|
|
|
|
OpMemberDecorate %S_std140 14 ColMajor
|
|
|
|
OpMemberDecorate %S_std140 14 MatrixStride 16
|
|
|
|
OpMemberDecorate %S_std140 15 Offset 192
|
|
|
|
OpMemberDecorate %S_std140 15 ColMajor
|
|
|
|
OpMemberDecorate %S_std140 15 MatrixStride 16
|
|
|
|
OpMemberDecorate %S_std140 16 Offset 224
|
|
|
|
OpMemberDecorate %S_std140 17 Offset 232
|
|
|
|
OpMemberDecorate %S_std140 18 Offset 240
|
|
|
|
OpMemberDecorate %S_std140 19 Offset 256
|
|
|
|
OpMemberDecorate %S_std140 19 ColMajor
|
|
|
|
OpMemberDecorate %S_std140 19 MatrixStride 16
|
|
|
|
OpMemberDecorate %S_std140 20 Offset 304
|
|
|
|
OpMemberDecorate %S_std140 20 ColMajor
|
|
|
|
OpMemberDecorate %S_std140 20 MatrixStride 16
|
|
|
|
OpMemberDecorate %S_std140 21 Offset 352
|
|
|
|
OpMemberDecorate %S_std140 22 Offset 360
|
|
|
|
OpMemberDecorate %S_std140 23 Offset 368
|
|
|
|
OpMemberDecorate %S_std140 24 Offset 376
|
|
|
|
OpMemberDecorate %S_std140 25 Offset 384
|
|
|
|
OpMemberDecorate %S_std140 25 ColMajor
|
|
|
|
OpMemberDecorate %S_std140 25 MatrixStride 16
|
|
|
|
OpMemberDecorate %S_std140 26 Offset 448
|
|
|
|
OpMemberDecorate %S_std140 26 ColMajor
|
|
|
|
OpMemberDecorate %S_std140 26 MatrixStride 16
|
|
|
|
OpMemberDecorate %S_std140 27 Offset 512
|
|
|
|
OpDecorate %_arr_v3float_uint_2 ArrayStride 16
|
|
|
|
OpMemberDecorate %S_std140 28 Offset 544
|
2021-07-13 12:18:13 +00:00
|
|
|
OpMemberDecorate %Inner 0 Offset 0
|
2022-11-30 02:47:27 +00:00
|
|
|
OpMemberDecorate %Inner 1 Offset 16
|
|
|
|
OpMemberDecorate %S_std140 29 Offset 576
|
|
|
|
OpDecorate %_arr_Inner_uint_4 ArrayStride 32
|
|
|
|
OpDecorate %ub NonWritable
|
|
|
|
OpDecorate %ub Binding 0
|
|
|
|
OpDecorate %ub DescriptorSet 0
|
|
|
|
%float = OpTypeFloat 32
|
2021-07-13 12:18:13 +00:00
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%uint = OpTypeInt 32 0
|
2022-11-30 02:47:27 +00:00
|
|
|
%v2float = OpTypeVector %float 2
|
2021-07-13 12:18:13 +00:00
|
|
|
%v2int = OpTypeVector %int 2
|
2022-11-30 02:47:27 +00:00
|
|
|
%v2uint = OpTypeVector %uint 2
|
|
|
|
%v3float = OpTypeVector %float 3
|
|
|
|
%v3int = OpTypeVector %int 3
|
|
|
|
%v3uint = OpTypeVector %uint 3
|
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%v4int = OpTypeVector %int 4
|
|
|
|
%v4uint = OpTypeVector %uint 4
|
2021-07-13 12:18:13 +00:00
|
|
|
%mat2v3float = OpTypeMatrix %v3float 2
|
2022-11-30 02:47:27 +00:00
|
|
|
%mat2v4float = OpTypeMatrix %v4float 2
|
|
|
|
%mat3v3float = OpTypeMatrix %v3float 3
|
|
|
|
%mat3v4float = OpTypeMatrix %v4float 3
|
|
|
|
%mat4v3float = OpTypeMatrix %v3float 4
|
|
|
|
%mat4v4float = OpTypeMatrix %v4float 4
|
|
|
|
%uint_2 = OpConstant %uint 2
|
|
|
|
%_arr_v3float_uint_2 = OpTypeArray %v3float %uint_2
|
|
|
|
%Inner = OpTypeStruct %int %float
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_4 = OpConstant %uint 4
|
|
|
|
%_arr_Inner_uint_4 = OpTypeArray %Inner %uint_4
|
2022-11-30 02:47:27 +00:00
|
|
|
%S_std140 = OpTypeStruct %float %int %uint %v2float %v2int %v2uint %v3float %v3int %v3uint %v4float %v4int %v4uint %v2float %v2float %mat2v3float %mat2v4float %v2float %v2float %v2float %mat3v3float %mat3v4float %v2float %v2float %v2float %v2float %mat4v3float %mat4v4float %_arr_v3float_uint_2 %Inner %_arr_Inner_uint_4
|
|
|
|
%ub_block_std140 = OpTypeStruct %S_std140
|
|
|
|
%_ptr_Uniform_ub_block_std140 = OpTypePointer Uniform %ub_block_std140
|
|
|
|
%ub = OpVariable %_ptr_Uniform_ub_block_std140 Uniform
|
|
|
|
%mat2v2float = OpTypeMatrix %v2float 2
|
|
|
|
%28 = OpTypeFunction %mat2v2float
|
2022-11-02 02:25:38 +00:00
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_Uniform_S_std140 = OpTypePointer Uniform %S_std140
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_12 = OpConstant %uint 12
|
2022-09-01 22:12:19 +00:00
|
|
|
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_13 = OpConstant %uint 13
|
|
|
|
%mat3v2float = OpTypeMatrix %v2float 3
|
|
|
|
%46 = OpTypeFunction %mat3v2float
|
|
|
|
%uint_16 = OpConstant %uint 16
|
|
|
|
%uint_17 = OpConstant %uint 17
|
|
|
|
%uint_18 = OpConstant %uint 18
|
|
|
|
%mat4v2float = OpTypeMatrix %v2float 4
|
|
|
|
%65 = OpTypeFunction %mat4v2float
|
|
|
|
%uint_21 = OpConstant %uint 21
|
|
|
|
%uint_22 = OpConstant %uint 22
|
|
|
|
%uint_23 = OpConstant %uint 23
|
|
|
|
%uint_24 = OpConstant %uint 24
|
2021-07-13 12:18:13 +00:00
|
|
|
%void = OpTypeVoid
|
2022-11-30 02:47:27 +00:00
|
|
|
%88 = OpTypeFunction %void
|
|
|
|
%_ptr_Uniform_float = OpTypePointer Uniform %float
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_1 = OpConstant %uint 1
|
|
|
|
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
|
|
|
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_3 = OpConstant %uint 3
|
|
|
|
%_ptr_Uniform_v2int = OpTypePointer Uniform %v2int
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_5 = OpConstant %uint 5
|
2022-11-30 02:47:27 +00:00
|
|
|
%_ptr_Uniform_v2uint = OpTypePointer Uniform %v2uint
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_6 = OpConstant %uint 6
|
2022-11-30 02:47:27 +00:00
|
|
|
%_ptr_Uniform_v3float = OpTypePointer Uniform %v3float
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_7 = OpConstant %uint 7
|
2022-11-30 02:47:27 +00:00
|
|
|
%_ptr_Uniform_v3int = OpTypePointer Uniform %v3int
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_8 = OpConstant %uint 8
|
2022-11-30 02:47:27 +00:00
|
|
|
%_ptr_Uniform_v3uint = OpTypePointer Uniform %v3uint
|
|
|
|
%uint_9 = OpConstant %uint 9
|
|
|
|
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
|
|
|
|
%uint_10 = OpConstant %uint 10
|
|
|
|
%_ptr_Uniform_v4int = OpTypePointer Uniform %v4int
|
|
|
|
%uint_11 = OpConstant %uint 11
|
|
|
|
%_ptr_Uniform_v4uint = OpTypePointer Uniform %v4uint
|
|
|
|
%uint_14 = OpConstant %uint 14
|
2021-07-13 12:18:13 +00:00
|
|
|
%_ptr_Uniform_mat2v3float = OpTypePointer Uniform %mat2v3float
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_15 = OpConstant %uint 15
|
|
|
|
%_ptr_Uniform_mat2v4float = OpTypePointer Uniform %mat2v4float
|
|
|
|
%uint_19 = OpConstant %uint 19
|
|
|
|
%_ptr_Uniform_mat3v3float = OpTypePointer Uniform %mat3v3float
|
|
|
|
%uint_20 = OpConstant %uint 20
|
|
|
|
%_ptr_Uniform_mat3v4float = OpTypePointer Uniform %mat3v4float
|
|
|
|
%uint_25 = OpConstant %uint 25
|
|
|
|
%_ptr_Uniform_mat4v3float = OpTypePointer Uniform %mat4v3float
|
|
|
|
%uint_26 = OpConstant %uint 26
|
|
|
|
%_ptr_Uniform_mat4v4float = OpTypePointer Uniform %mat4v4float
|
|
|
|
%uint_27 = OpConstant %uint 27
|
|
|
|
%_ptr_Uniform__arr_v3float_uint_2 = OpTypePointer Uniform %_arr_v3float_uint_2
|
|
|
|
%uint_28 = OpConstant %uint 28
|
2021-07-13 12:18:13 +00:00
|
|
|
%_ptr_Uniform_Inner = OpTypePointer Uniform %Inner
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_29 = OpConstant %uint 29
|
2021-07-13 12:18:13 +00:00
|
|
|
%_ptr_Uniform__arr_Inner_uint_4 = OpTypePointer Uniform %_arr_Inner_uint_4
|
2022-11-30 02:47:27 +00:00
|
|
|
%load_ub_inner_mat2x2_f32 = OpFunction %mat2v2float None %28
|
|
|
|
%31 = OpLabel
|
|
|
|
%35 = OpAccessChain %_ptr_Uniform_S_std140 %ub %uint_0
|
|
|
|
%39 = OpAccessChain %_ptr_Uniform_v2float %35 %uint_12
|
|
|
|
%40 = OpLoad %v2float %39
|
|
|
|
%43 = OpAccessChain %_ptr_Uniform_v2float %35 %uint_13
|
|
|
|
%44 = OpLoad %v2float %43
|
|
|
|
%45 = OpCompositeConstruct %mat2v2float %40 %44
|
|
|
|
OpReturnValue %45
|
|
|
|
OpFunctionEnd
|
|
|
|
%load_ub_inner_mat3x2_f32 = OpFunction %mat3v2float None %46
|
|
|
|
%49 = OpLabel
|
|
|
|
%51 = OpAccessChain %_ptr_Uniform_S_std140 %ub %uint_0
|
|
|
|
%54 = OpAccessChain %_ptr_Uniform_v2float %51 %uint_16
|
|
|
|
%55 = OpLoad %v2float %54
|
|
|
|
%58 = OpAccessChain %_ptr_Uniform_v2float %51 %uint_17
|
|
|
|
%59 = OpLoad %v2float %58
|
|
|
|
%62 = OpAccessChain %_ptr_Uniform_v2float %51 %uint_18
|
|
|
|
%63 = OpLoad %v2float %62
|
|
|
|
%64 = OpCompositeConstruct %mat3v2float %55 %59 %63
|
|
|
|
OpReturnValue %64
|
|
|
|
OpFunctionEnd
|
|
|
|
%load_ub_inner_mat4x2_f32 = OpFunction %mat4v2float None %65
|
|
|
|
%68 = OpLabel
|
|
|
|
%70 = OpAccessChain %_ptr_Uniform_S_std140 %ub %uint_0
|
|
|
|
%73 = OpAccessChain %_ptr_Uniform_v2float %70 %uint_21
|
|
|
|
%74 = OpLoad %v2float %73
|
|
|
|
%77 = OpAccessChain %_ptr_Uniform_v2float %70 %uint_22
|
|
|
|
%78 = OpLoad %v2float %77
|
|
|
|
%81 = OpAccessChain %_ptr_Uniform_v2float %70 %uint_23
|
|
|
|
%82 = OpLoad %v2float %81
|
|
|
|
%85 = OpAccessChain %_ptr_Uniform_v2float %70 %uint_24
|
|
|
|
%86 = OpLoad %v2float %85
|
|
|
|
%87 = OpCompositeConstruct %mat4v2float %74 %78 %82 %86
|
|
|
|
OpReturnValue %87
|
2022-09-01 22:12:19 +00:00
|
|
|
OpFunctionEnd
|
2022-11-30 02:47:27 +00:00
|
|
|
%main = OpFunction %void None %88
|
|
|
|
%91 = OpLabel
|
|
|
|
%93 = OpAccessChain %_ptr_Uniform_float %ub %uint_0 %uint_0
|
|
|
|
%94 = OpLoad %float %93
|
|
|
|
%97 = OpAccessChain %_ptr_Uniform_int %ub %uint_0 %uint_1
|
|
|
|
%98 = OpLoad %int %97
|
|
|
|
%100 = OpAccessChain %_ptr_Uniform_uint %ub %uint_0 %uint_2
|
|
|
|
%101 = OpLoad %uint %100
|
|
|
|
%103 = OpAccessChain %_ptr_Uniform_v2float %ub %uint_0 %uint_3
|
|
|
|
%104 = OpLoad %v2float %103
|
|
|
|
%106 = OpAccessChain %_ptr_Uniform_v2int %ub %uint_0 %uint_4
|
|
|
|
%107 = OpLoad %v2int %106
|
|
|
|
%110 = OpAccessChain %_ptr_Uniform_v2uint %ub %uint_0 %uint_5
|
|
|
|
%111 = OpLoad %v2uint %110
|
|
|
|
%114 = OpAccessChain %_ptr_Uniform_v3float %ub %uint_0 %uint_6
|
|
|
|
%115 = OpLoad %v3float %114
|
|
|
|
%118 = OpAccessChain %_ptr_Uniform_v3int %ub %uint_0 %uint_7
|
|
|
|
%119 = OpLoad %v3int %118
|
|
|
|
%122 = OpAccessChain %_ptr_Uniform_v3uint %ub %uint_0 %uint_8
|
|
|
|
%123 = OpLoad %v3uint %122
|
|
|
|
%126 = OpAccessChain %_ptr_Uniform_v4float %ub %uint_0 %uint_9
|
|
|
|
%127 = OpLoad %v4float %126
|
|
|
|
%130 = OpAccessChain %_ptr_Uniform_v4int %ub %uint_0 %uint_10
|
|
|
|
%131 = OpLoad %v4int %130
|
|
|
|
%134 = OpAccessChain %_ptr_Uniform_v4uint %ub %uint_0 %uint_11
|
|
|
|
%135 = OpLoad %v4uint %134
|
|
|
|
%136 = OpFunctionCall %mat2v2float %load_ub_inner_mat2x2_f32
|
|
|
|
%139 = OpAccessChain %_ptr_Uniform_mat2v3float %ub %uint_0 %uint_14
|
|
|
|
%140 = OpLoad %mat2v3float %139
|
|
|
|
%143 = OpAccessChain %_ptr_Uniform_mat2v4float %ub %uint_0 %uint_15
|
|
|
|
%144 = OpLoad %mat2v4float %143
|
|
|
|
%145 = OpFunctionCall %mat3v2float %load_ub_inner_mat3x2_f32
|
|
|
|
%148 = OpAccessChain %_ptr_Uniform_mat3v3float %ub %uint_0 %uint_19
|
|
|
|
%149 = OpLoad %mat3v3float %148
|
|
|
|
%152 = OpAccessChain %_ptr_Uniform_mat3v4float %ub %uint_0 %uint_20
|
|
|
|
%153 = OpLoad %mat3v4float %152
|
|
|
|
%154 = OpFunctionCall %mat4v2float %load_ub_inner_mat4x2_f32
|
|
|
|
%157 = OpAccessChain %_ptr_Uniform_mat4v3float %ub %uint_0 %uint_25
|
|
|
|
%158 = OpLoad %mat4v3float %157
|
|
|
|
%161 = OpAccessChain %_ptr_Uniform_mat4v4float %ub %uint_0 %uint_26
|
|
|
|
%162 = OpLoad %mat4v4float %161
|
|
|
|
%165 = OpAccessChain %_ptr_Uniform__arr_v3float_uint_2 %ub %uint_0 %uint_27
|
|
|
|
%166 = OpLoad %_arr_v3float_uint_2 %165
|
|
|
|
%169 = OpAccessChain %_ptr_Uniform_Inner %ub %uint_0 %uint_28
|
|
|
|
%170 = OpLoad %Inner %169
|
|
|
|
%173 = OpAccessChain %_ptr_Uniform__arr_Inner_uint_4 %ub %uint_0 %uint_29
|
|
|
|
%174 = OpLoad %_arr_Inner_uint_4 %173
|
2021-07-13 12:18:13 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|