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