yum-mirror/glslang

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

Wint3rNightAdd GL_EXT_clip_cull_distance and GL_ARB_cull_distance54947913

main
2.5 KiB53 linesraw
1spv.320.clipCullDistance.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 30
5
6                              Capability Shader
7                              Capability ClipDistance
8                              Capability CullDistance
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint Fragment 4  "main" 9 14 23
12                              ExecutionMode 4 OriginUpperLeft
13                              Source ESSL 320
14                              SourceExtension  "GL_EXT_clip_cull_distance"
15                              Name 4  "main"
16                              Name 9  "color"
17                              Name 14  "gl_ClipDistance"
18                              Name 23  "gl_CullDistance"
19                              Decorate 9(color) RelaxedPrecision
20                              Decorate 9(color) Location 0
21                              Decorate 14(gl_ClipDistance) BuiltIn ClipDistance
22                              Decorate 23(gl_CullDistance) BuiltIn CullDistance
23               2:             TypeVoid
24               3:             TypeFunction 2
25               6:             TypeFloat 32
26               7:             TypeVector 6(float) 4
27               8:             TypePointer Output 7(fvec4)
28        9(color):      8(ptr) Variable Output
29              10:             TypeInt 32 0
30              11:     10(int) Constant 2
31              12:             TypeArray 6(float) 11
32              13:             TypePointer Input 12
3314(gl_ClipDistance):     13(ptr) Variable Input
34              15:             TypeInt 32 1
35              16:     15(int) Constant 1
36              17:             TypePointer Input 6(float)
37              20:     10(int) Constant 1
38              21:             TypeArray 6(float) 20
39              22:             TypePointer Input 21
4023(gl_CullDistance):     22(ptr) Variable Input
41              24:     15(int) Constant 0
42              27:    6(float) Constant 0
43              28:    6(float) Constant 1065353216
44         4(main):           2 Function None 3
45               5:             Label
46              18:     17(ptr) AccessChain 14(gl_ClipDistance) 16
47              19:    6(float) Load 18
48              25:     17(ptr) AccessChain 23(gl_CullDistance) 24
49              26:    6(float) Load 25
50              29:    7(fvec4) CompositeConstruct 19 26 27 28
51                              Store 9(color) 29
52                              Return
53                              FunctionEnd