Files
wgpu/tests/out/access.spvasm
T
2021-05-04 22:16:24 -04:00

70 lines
1.8 KiB
Plaintext

; SPIR-V
; Version: 1.1
; Generator: rspirv
; Bound: 42
OpCapability Image1D
OpCapability Shader
OpCapability Sampled1D
OpExtension "SPV_KHR_storage_buffer_storage_class"
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %23 "foo" %18 %21
OpSource GLSL 450
OpName %11 "Bar"
OpMemberName %11 0 "data"
OpName %15 "bar"
OpName %18 "vi"
OpName %23 "foo"
OpDecorate %10 ArrayStride 4
OpDecorate %11 Block
OpMemberDecorate %11 0 Offset 0
OpDecorate %14 ArrayStride 4
OpDecorate %15 DescriptorSet 0
OpDecorate %15 Binding 0
OpDecorate %18 BuiltIn VertexIndex
OpDecorate %21 BuiltIn Position
%2 = OpTypeVoid
%4 = OpTypeInt 32 0
%3 = OpConstant %4 1
%6 = OpTypeInt 32 1
%5 = OpConstant %6 5
%7 = OpConstant %6 2
%8 = OpConstant %6 3
%9 = OpConstant %6 4
%10 = OpTypeRuntimeArray %6
%11 = OpTypeStruct %10
%13 = OpTypeFloat 32
%12 = OpTypeVector %13 4
%14 = OpTypeArray %6 %5
%16 = OpTypePointer StorageBuffer %11
%15 = OpVariable %16 StorageBuffer
%19 = OpTypePointer Input %4
%18 = OpVariable %19 Input
%22 = OpTypePointer Output %12
%21 = OpVariable %22 Output
%24 = OpTypeFunction %2
%26 = OpTypePointer StorageBuffer %10
%29 = OpTypePointer StorageBuffer %6
%30 = OpConstant %4 0
%34 = OpTypePointer Function %14
%37 = OpTypePointer Function %6
%39 = OpTypeVector %6 4
%23 = OpFunction %2 None %24
%17 = OpLabel
%35 = OpVariable %34 Function
%20 = OpLoad %4 %18
OpBranch %25
%25 = OpLabel
%27 = OpArrayLength %4 %15 0
%28 = OpISub %4 %27 %3
%31 = OpAccessChain %29 %15 %30 %28
%32 = OpLoad %6 %31
%33 = OpCompositeConstruct %14 %32 %7 %8 %9 %5
OpStore %35 %33
%36 = OpAccessChain %37 %35 %20
%38 = OpLoad %6 %36
%40 = OpCompositeConstruct %39 %38 %38 %38 %38
%41 = OpConvertSToF %12 %40
OpStore %21 %41
OpReturn
OpFunctionEnd