2021-07-13 12:18:13 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-08-05 17:34:19 +00:00
|
|
|
; Bound: 65
|
2021-07-13 12:18:13 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-08-05 17:34:19 +00:00
|
|
|
OpEntryPoint GLCompute %main "main" %idx_1
|
2021-07-13 12:18:13 +00:00
|
|
|
OpExecutionMode %main LocalSize 1 1 1
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %idx_1 "idx_1"
|
2021-07-13 12:18:13 +00:00
|
|
|
OpName %S "S"
|
|
|
|
OpMemberName %S 0 "arr"
|
|
|
|
OpName %Inner "Inner"
|
|
|
|
OpMemberName %Inner 0 "a"
|
|
|
|
OpMemberName %Inner 1 "b"
|
|
|
|
OpMemberName %Inner 2 "c"
|
|
|
|
OpMemberName %Inner 3 "d"
|
|
|
|
OpMemberName %Inner 4 "e"
|
|
|
|
OpMemberName %Inner 5 "f"
|
|
|
|
OpMemberName %Inner 6 "g"
|
|
|
|
OpMemberName %Inner 7 "h"
|
|
|
|
OpMemberName %Inner 8 "i"
|
|
|
|
OpName %s "s"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %main_inner "main_inner"
|
|
|
|
OpName %idx "idx"
|
2021-07-13 12:18:13 +00:00
|
|
|
OpName %main "main"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %idx_1 BuiltIn LocalInvocationIndex
|
2021-07-13 12:18:13 +00:00
|
|
|
OpDecorate %S Block
|
|
|
|
OpMemberDecorate %S 0 Offset 0
|
|
|
|
OpMemberDecorate %Inner 0 Offset 0
|
|
|
|
OpMemberDecorate %Inner 1 Offset 12
|
|
|
|
OpMemberDecorate %Inner 2 Offset 16
|
|
|
|
OpMemberDecorate %Inner 3 Offset 28
|
|
|
|
OpMemberDecorate %Inner 4 Offset 32
|
|
|
|
OpMemberDecorate %Inner 5 Offset 44
|
|
|
|
OpMemberDecorate %Inner 6 Offset 48
|
|
|
|
OpMemberDecorate %Inner 6 ColMajor
|
|
|
|
OpMemberDecorate %Inner 6 MatrixStride 16
|
|
|
|
OpMemberDecorate %Inner 7 Offset 80
|
|
|
|
OpMemberDecorate %Inner 7 ColMajor
|
|
|
|
OpMemberDecorate %Inner 7 MatrixStride 8
|
|
|
|
OpMemberDecorate %Inner 8 Offset 112
|
|
|
|
OpDecorate %_arr_v4int_uint_4 ArrayStride 16
|
|
|
|
OpDecorate %_runtimearr_Inner ArrayStride 176
|
|
|
|
OpDecorate %s Binding 0
|
|
|
|
OpDecorate %s DescriptorSet 0
|
2021-08-05 17:34:19 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
|
|
|
%idx_1 = OpVariable %_ptr_Input_uint Input
|
2021-07-13 12:18:13 +00:00
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%v3int = OpTypeVector %int 3
|
|
|
|
%v3uint = OpTypeVector %uint 3
|
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v3float = OpTypeVector %float 3
|
|
|
|
%mat2v3float = OpTypeMatrix %v3float 2
|
|
|
|
%v2float = OpTypeVector %float 2
|
|
|
|
%mat3v2float = OpTypeMatrix %v2float 3
|
|
|
|
%v4int = OpTypeVector %int 4
|
|
|
|
%uint_4 = OpConstant %uint 4
|
|
|
|
%_arr_v4int_uint_4 = OpTypeArray %v4int %uint_4
|
|
|
|
%Inner = OpTypeStruct %v3int %int %v3uint %uint %v3float %float %mat2v3float %mat3v2float %_arr_v4int_uint_4
|
|
|
|
%_runtimearr_Inner = OpTypeRuntimeArray %Inner
|
|
|
|
%S = OpTypeStruct %_runtimearr_Inner
|
|
|
|
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
|
|
|
|
%s = OpVariable %_ptr_StorageBuffer_S StorageBuffer
|
|
|
|
%void = OpTypeVoid
|
2021-08-05 17:34:19 +00:00
|
|
|
%20 = OpTypeFunction %void %uint
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
|
|
|
|
%28 = OpConstantNull %v3int
|
|
|
|
%uint_1 = OpConstant %uint 1
|
|
|
|
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
|
2021-08-05 17:34:19 +00:00
|
|
|
%32 = OpConstantNull %int
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_2 = OpConstant %uint 2
|
|
|
|
%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%36 = OpConstantNull %v3uint
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_3 = OpConstant %uint 3
|
|
|
|
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%40 = OpConstantNull %uint
|
2021-07-13 12:18:13 +00:00
|
|
|
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
2021-08-05 17:34:19 +00:00
|
|
|
%43 = OpConstantNull %v3float
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_5 = OpConstant %uint 5
|
|
|
|
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
|
2021-08-05 17:34:19 +00:00
|
|
|
%47 = OpConstantNull %float
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_6 = OpConstant %uint 6
|
|
|
|
%_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float
|
2021-08-05 17:34:19 +00:00
|
|
|
%51 = OpConstantNull %mat2v3float
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_7 = OpConstant %uint 7
|
|
|
|
%_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float
|
2021-08-05 17:34:19 +00:00
|
|
|
%55 = OpConstantNull %mat3v2float
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_8 = OpConstant %uint 8
|
|
|
|
%_ptr_StorageBuffer__arr_v4int_uint_4 = OpTypePointer StorageBuffer %_arr_v4int_uint_4
|
2021-08-05 17:34:19 +00:00
|
|
|
%59 = OpConstantNull %_arr_v4int_uint_4
|
|
|
|
%60 = OpTypeFunction %void
|
|
|
|
%main_inner = OpFunction %void None %20
|
|
|
|
%idx = OpFunctionParameter %uint
|
|
|
|
%24 = OpLabel
|
|
|
|
%27 = OpAccessChain %_ptr_StorageBuffer_v3int %s %uint_0 %idx %uint_0
|
2021-07-13 12:18:13 +00:00
|
|
|
OpStore %27 %28
|
2021-08-05 17:34:19 +00:00
|
|
|
%31 = OpAccessChain %_ptr_StorageBuffer_int %s %uint_0 %idx %uint_1
|
|
|
|
OpStore %31 %32
|
|
|
|
%35 = OpAccessChain %_ptr_StorageBuffer_v3uint %s %uint_0 %idx %uint_2
|
|
|
|
OpStore %35 %36
|
|
|
|
%39 = OpAccessChain %_ptr_StorageBuffer_uint %s %uint_0 %idx %uint_3
|
|
|
|
OpStore %39 %40
|
|
|
|
%42 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %idx %uint_4
|
2021-07-13 12:18:13 +00:00
|
|
|
OpStore %42 %43
|
2021-08-05 17:34:19 +00:00
|
|
|
%46 = OpAccessChain %_ptr_StorageBuffer_float %s %uint_0 %idx %uint_5
|
2021-07-13 12:18:13 +00:00
|
|
|
OpStore %46 %47
|
2021-08-05 17:34:19 +00:00
|
|
|
%50 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %s %uint_0 %idx %uint_6
|
|
|
|
OpStore %50 %51
|
|
|
|
%54 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %s %uint_0 %idx %uint_7
|
|
|
|
OpStore %54 %55
|
|
|
|
%58 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %s %uint_0 %idx %uint_8
|
|
|
|
OpStore %58 %59
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%main = OpFunction %void None %60
|
|
|
|
%62 = OpLabel
|
|
|
|
%64 = OpLoad %uint %idx_1
|
|
|
|
%63 = OpFunctionCall %void %main_inner %64
|
2021-07-13 12:18:13 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|