2021-07-23 16:44:52 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-11-02 02:25:38 +00:00
|
|
|
; Bound: 30
|
2021-07-23 16:44:52 +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 %ubo_block "ubo_block"
|
|
|
|
OpMemberName %ubo_block 0 "inner"
|
2021-07-23 16:44:52 +00:00
|
|
|
OpName %UBO "UBO"
|
|
|
|
OpMemberName %UBO 0 "dynamic_idx"
|
|
|
|
OpName %ubo "ubo"
|
2022-11-02 02:25:38 +00:00
|
|
|
OpName %result_block "result_block"
|
|
|
|
OpMemberName %result_block 0 "inner"
|
2021-07-23 16:44:52 +00:00
|
|
|
OpName %Result "Result"
|
|
|
|
OpMemberName %Result 0 "out"
|
|
|
|
OpName %result "result"
|
|
|
|
OpName %f "f"
|
|
|
|
OpName %S "S"
|
|
|
|
OpMemberName %S 0 "data"
|
|
|
|
OpName %s "s"
|
2022-11-02 02:25:38 +00:00
|
|
|
OpDecorate %ubo_block Block
|
|
|
|
OpMemberDecorate %ubo_block 0 Offset 0
|
2021-07-23 16:44:52 +00:00
|
|
|
OpMemberDecorate %UBO 0 Offset 0
|
|
|
|
OpDecorate %ubo NonWritable
|
|
|
|
OpDecorate %ubo DescriptorSet 0
|
|
|
|
OpDecorate %ubo Binding 0
|
2022-11-02 02:25:38 +00:00
|
|
|
OpDecorate %result_block Block
|
|
|
|
OpMemberDecorate %result_block 0 Offset 0
|
2021-07-23 16:44:52 +00:00
|
|
|
OpMemberDecorate %Result 0 Offset 0
|
|
|
|
OpDecorate %result DescriptorSet 0
|
|
|
|
OpDecorate %result Binding 1
|
|
|
|
OpMemberDecorate %S 0 Offset 0
|
|
|
|
OpDecorate %_arr_int_uint_64 ArrayStride 4
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%UBO = OpTypeStruct %int
|
2022-11-02 02:25:38 +00:00
|
|
|
%ubo_block = OpTypeStruct %UBO
|
|
|
|
%_ptr_Uniform_ubo_block = OpTypePointer Uniform %ubo_block
|
|
|
|
%ubo = OpVariable %_ptr_Uniform_ubo_block Uniform
|
2021-07-23 16:44:52 +00:00
|
|
|
%Result = OpTypeStruct %int
|
2022-11-02 02:25:38 +00:00
|
|
|
%result_block = OpTypeStruct %Result
|
|
|
|
%_ptr_StorageBuffer_result_block = OpTypePointer StorageBuffer %result_block
|
|
|
|
%result = OpVariable %_ptr_StorageBuffer_result_block StorageBuffer
|
2021-07-23 16:44:52 +00:00
|
|
|
%void = OpTypeVoid
|
2022-11-02 02:25:38 +00:00
|
|
|
%10 = OpTypeFunction %void
|
2021-07-23 16:44:52 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%uint_64 = OpConstant %uint 64
|
|
|
|
%_arr_int_uint_64 = OpTypeArray %int %uint_64
|
|
|
|
%S = OpTypeStruct %_arr_int_uint_64
|
|
|
|
%_ptr_Function_S = OpTypePointer Function %S
|
2022-11-02 02:25:38 +00:00
|
|
|
%20 = OpConstantNull %S
|
2021-07-23 16:44:52 +00:00
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
|
|
|
|
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
|
|
|
%_ptr_Function_int = OpTypePointer Function %int
|
2022-11-02 02:25:38 +00:00
|
|
|
%f = OpFunction %void None %10
|
|
|
|
%13 = OpLabel
|
|
|
|
%s = OpVariable %_ptr_Function_S Function %20
|
|
|
|
%23 = OpAccessChain %_ptr_StorageBuffer_int %result %uint_0 %uint_0
|
|
|
|
%25 = OpAccessChain %_ptr_Uniform_int %ubo %uint_0 %uint_0
|
|
|
|
%26 = OpLoad %int %25
|
|
|
|
%28 = OpAccessChain %_ptr_Function_int %s %uint_0 %26
|
|
|
|
%29 = OpLoad %int %28
|
|
|
|
OpStore %23 %29
|
2021-07-23 16:44:52 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|