mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 00:11:11 +01:00
127 lines
2.9 KiB
Plaintext
127 lines
2.9 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 82
|
|
OpCapability Shader
|
|
OpExtension "SPV_KHR_storage_buffer_storage_class"
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %72 "main"
|
|
OpExecutionMode %72 LocalSize 1 1 1
|
|
OpDecorate %7 DescriptorSet 0
|
|
OpDecorate %7 Binding 0
|
|
OpDecorate %8 Block
|
|
OpMemberDecorate %8 0 Offset 0
|
|
OpDecorate %10 DescriptorSet 0
|
|
OpDecorate %10 Binding 1
|
|
OpDecorate %11 Block
|
|
OpMemberDecorate %11 0 Offset 0
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeInt 32 1
|
|
%3 = OpTypeVector %4 4
|
|
%5 = OpConstant %4 4
|
|
%6 = OpConstant %4 8
|
|
%8 = OpTypeStruct %3
|
|
%9 = OpTypePointer StorageBuffer %8
|
|
%7 = OpVariable %9 StorageBuffer
|
|
%11 = OpTypeStruct %4
|
|
%12 = OpTypePointer StorageBuffer %11
|
|
%10 = OpVariable %12 StorageBuffer
|
|
%15 = OpTypeFunction %2
|
|
%16 = OpTypePointer StorageBuffer %3
|
|
%18 = OpTypeInt 32 0
|
|
%17 = OpConstant %18 0
|
|
%20 = OpConstant %4 1
|
|
%21 = OpConstant %4 2
|
|
%22 = OpConstant %4 3
|
|
%23 = OpConstantComposite %3 %5 %22 %21 %20
|
|
%27 = OpTypePointer StorageBuffer %4
|
|
%35 = OpConstant %4 6
|
|
%42 = OpConstant %4 30
|
|
%43 = OpConstant %4 70
|
|
%45 = OpTypePointer Function %4
|
|
%47 = OpConstantNull %4
|
|
%49 = OpConstantNull %4
|
|
%64 = OpConstant %4 -4
|
|
%65 = OpConstantComposite %3 %64 %64 %64 %64
|
|
%14 = OpFunction %2 None %15
|
|
%13 = OpLabel
|
|
%19 = OpAccessChain %16 %7 %17
|
|
OpBranch %24
|
|
%24 = OpLabel
|
|
OpStore %19 %23
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%26 = OpFunction %2 None %15
|
|
%25 = OpLabel
|
|
%28 = OpAccessChain %27 %10 %17
|
|
OpBranch %29
|
|
%29 = OpLabel
|
|
%30 = OpLoad %4 %28
|
|
%31 = OpIAdd %4 %30 %21
|
|
OpStore %28 %31
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%33 = OpFunction %2 None %15
|
|
%32 = OpLabel
|
|
%34 = OpAccessChain %27 %10 %17
|
|
OpBranch %36
|
|
%36 = OpLabel
|
|
%37 = OpLoad %4 %34
|
|
%38 = OpIAdd %4 %37 %35
|
|
OpStore %34 %38
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%40 = OpFunction %2 None %15
|
|
%39 = OpLabel
|
|
%46 = OpVariable %45 Function %47
|
|
%50 = OpVariable %45 Function %43
|
|
%44 = OpVariable %45 Function %42
|
|
%48 = OpVariable %45 Function %49
|
|
%41 = OpAccessChain %16 %7 %17
|
|
OpBranch %51
|
|
%51 = OpLabel
|
|
%52 = OpLoad %4 %44
|
|
OpStore %46 %52
|
|
%53 = OpLoad %4 %46
|
|
OpStore %48 %53
|
|
%54 = OpLoad %4 %44
|
|
%55 = OpLoad %4 %46
|
|
%56 = OpLoad %4 %48
|
|
%57 = OpLoad %4 %50
|
|
%58 = OpCompositeConstruct %3 %54 %55 %56 %57
|
|
%59 = OpLoad %3 %41
|
|
%60 = OpIAdd %3 %59 %58
|
|
OpStore %41 %60
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%62 = OpFunction %2 None %15
|
|
%61 = OpLabel
|
|
%63 = OpAccessChain %16 %7 %17
|
|
OpBranch %66
|
|
%66 = OpLabel
|
|
OpStore %63 %65
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%68 = OpFunction %2 None %15
|
|
%67 = OpLabel
|
|
%69 = OpAccessChain %16 %7 %17
|
|
OpBranch %70
|
|
%70 = OpLabel
|
|
OpStore %69 %65
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%72 = OpFunction %2 None %15
|
|
%71 = OpLabel
|
|
%73 = OpAccessChain %16 %7 %17
|
|
%74 = OpAccessChain %27 %10 %17
|
|
OpBranch %75
|
|
%75 = OpLabel
|
|
%76 = OpFunctionCall %2 %14
|
|
%77 = OpFunctionCall %2 %26
|
|
%78 = OpFunctionCall %2 %33
|
|
%79 = OpFunctionCall %2 %40
|
|
%80 = OpFunctionCall %2 %62
|
|
%81 = OpFunctionCall %2 %68
|
|
OpReturn
|
|
OpFunctionEnd |