mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 01:23:57 +01:00
39 lines
959 B
Plaintext
39 lines
959 B
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 21
|
|
OpCapability Shader
|
|
OpExtension "SPV_KHR_storage_buffer_storage_class"
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %14 "cs_main"
|
|
OpExecutionMode %14 LocalSize 1 1 1
|
|
OpDecorate %6 ArrayStride 4
|
|
OpMemberDecorate %9 0 Offset 0
|
|
OpDecorate %10 NonWritable
|
|
OpDecorate %10 DescriptorSet 0
|
|
OpDecorate %10 Binding 0
|
|
OpDecorate %11 Block
|
|
OpMemberDecorate %11 0 Offset 0
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeInt 32 1
|
|
%3 = OpConstant %4 2
|
|
%5 = OpTypeFloat 32
|
|
%8 = OpTypeInt 32 0
|
|
%7 = OpConstant %8 2
|
|
%6 = OpTypeArray %5 %7
|
|
%9 = OpTypeStruct %6
|
|
%11 = OpTypeStruct %9
|
|
%12 = OpTypePointer StorageBuffer %11
|
|
%10 = OpVariable %12 StorageBuffer
|
|
%15 = OpTypeFunction %2
|
|
%16 = OpTypePointer StorageBuffer %9
|
|
%17 = OpConstant %8 0
|
|
%14 = OpFunction %2 None %15
|
|
%13 = OpLabel
|
|
%18 = OpAccessChain %16 %10 %17
|
|
OpBranch %19
|
|
%19 = OpLabel
|
|
%20 = OpLoad %9 %18
|
|
OpReturn
|
|
OpFunctionEnd |