mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: rspirv
|
|
; Bound: 35
|
|
OpCapability Shader
|
|
OpCapability Linkage
|
|
OpExtension "SPV_KHR_storage_buffer_storage_class"
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpSource GLSL 450
|
|
OpDecorate %12 ArrayStride 4
|
|
OpDecorate %14 ArrayStride 4
|
|
OpDecorate %15 Block
|
|
OpMemberDecorate %15 0 Offset 0
|
|
OpDecorate %17 DescriptorSet 0
|
|
OpDecorate %17 Binding 0
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeInt 32 1
|
|
%3 = OpConstant %4 0
|
|
%5 = OpConstant %4 1
|
|
%6 = OpConstant %4 2
|
|
%7 = OpConstant %4 3
|
|
%9 = OpTypeInt 32 0
|
|
%8 = OpConstant %9 0
|
|
%10 = OpConstant %9 7
|
|
%11 = OpTypePointer StorageBuffer %9
|
|
%12 = OpTypeArray %9 %10
|
|
%13 = OpTypePointer StorageBuffer %12
|
|
%14 = OpTypeRuntimeArray %9
|
|
%15 = OpTypeStruct %14
|
|
%16 = OpTypePointer StorageBuffer %15
|
|
%17 = OpVariable %16 StorageBuffer
|
|
%22 = OpTypeFunction %9 %13 %9
|
|
%30 = OpTypeFunction %9 %16 %9
|
|
%32 = OpTypePointer StorageBuffer %14
|
|
%21 = OpFunction %9 None %22
|
|
%19 = OpFunctionParameter %13
|
|
%20 = OpFunctionParameter %9
|
|
%18 = OpLabel
|
|
OpBranch %23
|
|
%23 = OpLabel
|
|
%24 = OpAccessChain %11 %19 %20
|
|
%25 = OpLoad %9 %24
|
|
OpReturnValue %25
|
|
OpFunctionEnd
|
|
%29 = OpFunction %9 None %30
|
|
%27 = OpFunctionParameter %16
|
|
%28 = OpFunctionParameter %9
|
|
%26 = OpLabel
|
|
OpBranch %31
|
|
%31 = OpLabel
|
|
%33 = OpAccessChain %11 %27 %8 %28
|
|
%34 = OpLoad %9 %33
|
|
OpReturnValue %34
|
|
OpFunctionEnd |