Files
wgpu/tests/out/texture-array.spvasm
Dzmitry Malyshau 9fe75ed7f1 Barriers
2021-05-04 22:16:24 -04:00

78 lines
1.9 KiB
Plaintext

; SPIR-V
; Version: 1.5
; Generator: rspirv
; Bound: 43
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %24 "main" %19 %22
OpExecutionMode %24 OriginUpperLeft
OpSource GLSL 450
OpName %8 "PushConstants"
OpMemberName %8 0 "index"
OpName %11 "texture0"
OpName %13 "texture1"
OpName %14 "sampler"
OpName %16 "pc"
OpName %19 "tex_coord"
OpName %24 "main"
OpDecorate %8 Block
OpMemberDecorate %8 0 Offset 0
OpDecorate %11 DescriptorSet 0
OpDecorate %11 Binding 0
OpDecorate %13 DescriptorSet 0
OpDecorate %13 Binding 1
OpDecorate %14 DescriptorSet 0
OpDecorate %14 Binding 2
OpDecorate %19 Location 0
OpDecorate %22 Location 1
%2 = OpTypeVoid
%4 = OpTypeInt 32 0
%3 = OpConstant %4 0
%6 = OpTypeFloat 32
%5 = OpTypeImage %6 2D 0 0 0 1 Unknown
%7 = OpTypeSampler
%8 = OpTypeStruct %4
%9 = OpTypeVector %6 2
%10 = OpTypeVector %6 4
%12 = OpTypePointer UniformConstant %5
%11 = OpVariable %12 UniformConstant
%13 = OpVariable %12 UniformConstant
%15 = OpTypePointer UniformConstant %7
%14 = OpVariable %15 UniformConstant
%17 = OpTypePointer PushConstant %8
%16 = OpVariable %17 PushConstant
%20 = OpTypePointer Input %9
%19 = OpVariable %20 Input
%23 = OpTypePointer Output %10
%22 = OpVariable %23 Output
%25 = OpTypeFunction %2
%30 = OpTypePointer PushConstant %4
%33 = OpTypeBool
%38 = OpTypeSampledImage %5
%24 = OpFunction %2 None %25
%18 = OpLabel
%21 = OpLoad %9 %19
%26 = OpLoad %5 %11
%27 = OpLoad %5 %13
%28 = OpLoad %7 %14
OpBranch %29
%29 = OpLabel
%31 = OpAccessChain %30 %16 %3
%32 = OpLoad %4 %31
%34 = OpIEqual %33 %32 %3
OpSelectionMerge %35 None
OpBranchConditional %34 %36 %37
%36 = OpLabel
%39 = OpSampledImage %38 %26 %28
%40 = OpImageSampleImplicitLod %10 %39 %21
OpStore %22 %40
OpReturn
%37 = OpLabel
%41 = OpSampledImage %38 %27 %28
%42 = OpImageSampleImplicitLod %10 %41 %21
OpStore %22 %42
OpReturn
%35 = OpLabel
OpReturn
OpFunctionEnd