yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Daniel SchürmannRemap discard to OpDemoteToHelperInvocation93231001

main
2.9 KiB62 linesraw
1spv.1.6.conditionalDiscard.frag
2// Module Version 10600
3// Generated by (magic number): 8000b
4// Id's are bound by 35
5
6                              Capability Shader
7                              Capability DemoteToHelperInvocationEXT
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint Fragment 4  "main" 13 17 33
11                              ExecutionMode 4 OriginUpperLeft
12                              Source GLSL 400
13                              Name 4  "main"
14                              Name 9  "v"
15                              Name 13  "tex"
16                              Name 17  "coord"
17                              Name 33  "gl_FragColor"
18                              Decorate 13(tex) Binding 0
19                              Decorate 13(tex) DescriptorSet 0
20                              Decorate 17(coord) Location 0
21                              Decorate 33(gl_FragColor) Location 0
22               2:             TypeVoid
23               3:             TypeFunction 2
24               6:             TypeFloat 32
25               7:             TypeVector 6(float) 4
26               8:             TypePointer Function 7(fvec4)
27              10:             TypeImage 6(float) 2D sampled format:Unknown
28              11:             TypeSampledImage 10
29              12:             TypePointer UniformConstant 11
30         13(tex):     12(ptr) Variable UniformConstant
31              15:             TypeVector 6(float) 2
32              16:             TypePointer Input 15(fvec2)
33       17(coord):     16(ptr) Variable Input
34              21:    6(float) Constant 1036831949
35              22:    6(float) Constant 1045220557
36              23:    6(float) Constant 1050253722
37              24:    6(float) Constant 1053609165
38              25:    7(fvec4) ConstantComposite 21 22 23 24
39              26:             TypeBool
40              27:             TypeVector 26(bool) 4
41              32:             TypePointer Output 7(fvec4)
4233(gl_FragColor):     32(ptr) Variable Output
43         4(main):           2 Function None 3
44               5:             Label
45            9(v):      8(ptr) Variable Function
46              14:          11 Load 13(tex)
47              18:   15(fvec2) Load 17(coord)
48              19:    7(fvec4) ImageSampleImplicitLod 14 18
49                              Store 9(v) 19
50              20:    7(fvec4) Load 9(v)
51              28:   27(bvec4) FOrdEqual 20 25
52              29:    26(bool) All 28
53                              SelectionMerge 31 None
54                              BranchConditional 29 30 31
55              30:               Label
56                                DemoteToHelperInvocationEXT
57                                Branch 31
58              31:             Label
59              34:    7(fvec4) Load 9(v)
60                              Store 33(gl_FragColor) 34
61                              Return
62                              FunctionEnd