56 lines
2.2 KiB
Plaintext
56 lines
2.2 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 25
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %f "f"
|
|
OpExecutionMode %f LocalSize 1 1 1
|
|
OpName %UBO "UBO"
|
|
OpMemberName %UBO 0 "data"
|
|
OpMemberName %UBO 1 "dynamic_idx"
|
|
OpName %ubo "ubo"
|
|
OpName %Result "Result"
|
|
OpMemberName %Result 0 "out"
|
|
OpName %result "result"
|
|
OpName %f "f"
|
|
OpDecorate %UBO Block
|
|
OpMemberDecorate %UBO 0 Offset 0
|
|
OpDecorate %_arr_v4int_uint_4 ArrayStride 16
|
|
OpMemberDecorate %UBO 1 Offset 64
|
|
OpDecorate %ubo NonWritable
|
|
OpDecorate %ubo DescriptorSet 0
|
|
OpDecorate %ubo Binding 0
|
|
OpDecorate %Result Block
|
|
OpMemberDecorate %Result 0 Offset 0
|
|
OpDecorate %result DescriptorSet 0
|
|
OpDecorate %result Binding 2
|
|
%int = OpTypeInt 32 1
|
|
%v4int = OpTypeVector %int 4
|
|
%uint = OpTypeInt 32 0
|
|
%uint_4 = OpConstant %uint 4
|
|
%_arr_v4int_uint_4 = OpTypeArray %v4int %uint_4
|
|
%UBO = OpTypeStruct %_arr_v4int_uint_4 %int
|
|
%_ptr_Uniform_UBO = OpTypePointer Uniform %UBO
|
|
%ubo = OpVariable %_ptr_Uniform_UBO Uniform
|
|
%Result = OpTypeStruct %int
|
|
%_ptr_StorageBuffer_Result = OpTypePointer StorageBuffer %Result
|
|
%result = OpVariable %_ptr_StorageBuffer_Result StorageBuffer
|
|
%void = OpTypeVoid
|
|
%12 = OpTypeFunction %void
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
|
|
%uint_1 = OpConstant %uint 1
|
|
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
|
%f = OpFunction %void None %12
|
|
%15 = OpLabel
|
|
%18 = OpAccessChain %_ptr_StorageBuffer_int %result %uint_0
|
|
%21 = OpAccessChain %_ptr_Uniform_int %ubo %uint_1
|
|
%22 = OpLoad %int %21
|
|
%23 = OpAccessChain %_ptr_Uniform_int %ubo %uint_0 %22 %uint_0
|
|
%24 = OpLoad %int %23
|
|
OpStore %18 %24
|
|
OpReturn
|
|
OpFunctionEnd
|