71 lines
2.8 KiB
Plaintext
71 lines
2.8 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 37
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %main "main"
|
|
OpExecutionMode %main LocalSize 1 1 1
|
|
OpName %i_block "i_block"
|
|
OpMemberName %i_block 0 "inner"
|
|
OpName %g "g"
|
|
OpMemberName %g 0 "a"
|
|
OpName %i "i"
|
|
OpName %j_block "j_block"
|
|
OpMemberName %j_block 0 "inner"
|
|
OpName %h "h"
|
|
OpMemberName %h 0 "a"
|
|
OpName %j "j"
|
|
OpName %main "main"
|
|
OpDecorate %i_block Block
|
|
OpMemberDecorate %i_block 0 Offset 0
|
|
OpMemberDecorate %g 0 Offset 0
|
|
OpDecorate %i NonWritable
|
|
OpDecorate %i DescriptorSet 0
|
|
OpDecorate %i Binding 0
|
|
OpDecorate %j_block Block
|
|
OpMemberDecorate %j_block 0 Offset 0
|
|
OpMemberDecorate %h 0 Offset 0
|
|
OpDecorate %j DescriptorSet 0
|
|
OpDecorate %j Binding 1
|
|
%uint = OpTypeInt 32 0
|
|
%v3uint = OpTypeVector %uint 3
|
|
%g = OpTypeStruct %v3uint
|
|
%i_block = OpTypeStruct %g
|
|
%_ptr_Uniform_i_block = OpTypePointer Uniform %i_block
|
|
%i = OpVariable %_ptr_Uniform_i_block Uniform
|
|
%h = OpTypeStruct %uint
|
|
%j_block = OpTypeStruct %h
|
|
%_ptr_StorageBuffer_j_block = OpTypePointer StorageBuffer %j_block
|
|
%j = OpVariable %_ptr_StorageBuffer_j_block StorageBuffer
|
|
%void = OpTypeVoid
|
|
%11 = OpTypeFunction %void
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_Uniform_v3uint = OpTypePointer Uniform %v3uint
|
|
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
|
|
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
|
|
%main = OpFunction %void None %11
|
|
%14 = OpLabel
|
|
%18 = OpAccessChain %_ptr_Uniform_v3uint %i %uint_0 %uint_0
|
|
%19 = OpLoad %v3uint %18
|
|
%20 = OpAccessChain %_ptr_Uniform_v3uint %i %uint_0 %uint_0
|
|
%21 = OpLoad %v3uint %20
|
|
%22 = OpCompositeExtract %uint %19 0
|
|
%23 = OpCompositeExtract %uint %21 0
|
|
%24 = OpIMul %uint %22 %23
|
|
%25 = OpCompositeExtract %uint %19 1
|
|
%26 = OpCompositeExtract %uint %21 1
|
|
%27 = OpIMul %uint %25 %26
|
|
%28 = OpIAdd %uint %24 %27
|
|
%29 = OpCompositeExtract %uint %19 2
|
|
%30 = OpCompositeExtract %uint %21 2
|
|
%31 = OpIMul %uint %29 %30
|
|
%15 = OpIAdd %uint %28 %31
|
|
%33 = OpAccessChain %_ptr_StorageBuffer_uint %j %uint_0 %uint_0
|
|
%35 = OpAccessChain %_ptr_Uniform_uint %i %uint_0 %uint_0 %uint_0
|
|
%36 = OpLoad %uint %35
|
|
OpStore %33 %36
|
|
OpReturn
|
|
OpFunctionEnd
|