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.8 KiB57 linesraw
1spv.440.cullDistance.vert
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 29
5
6                              Capability Shader
7                              Capability ClipDistance
8                              Capability CullDistance
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint Vertex 4  "main" 15
12                              Source GLSL 440
13                              SourceExtension  "GL_ARB_cull_distance"
14                              Name 4  "main"
15                              Name 13  "gl_PerVertex"
16                              MemberName 13(gl_PerVertex) 0  "gl_Position"
17                              MemberName 13(gl_PerVertex) 1  "gl_PointSize"
18                              MemberName 13(gl_PerVertex) 2  "gl_ClipDistance"
19                              MemberName 13(gl_PerVertex) 3  "gl_CullDistance"
20                              Name 15  ""
21                              Decorate 13(gl_PerVertex) Block
22                              MemberDecorate 13(gl_PerVertex) 0 BuiltIn Position
23                              MemberDecorate 13(gl_PerVertex) 1 BuiltIn PointSize
24                              MemberDecorate 13(gl_PerVertex) 2 BuiltIn ClipDistance
25                              MemberDecorate 13(gl_PerVertex) 3 BuiltIn CullDistance
26               2:             TypeVoid
27               3:             TypeFunction 2
28               6:             TypeFloat 32
29               7:             TypeVector 6(float) 4
30               8:             TypeInt 32 0
31               9:      8(int) Constant 1
32              10:             TypeArray 6(float) 9
33              11:      8(int) Constant 2
34              12:             TypeArray 6(float) 11
3513(gl_PerVertex):             TypeStruct 7(fvec4) 6(float) 10 12
36              14:             TypePointer Output 13(gl_PerVertex)
37              15:     14(ptr) Variable Output
38              16:             TypeInt 32 1
39              17:     16(int) Constant 3
40              18:     16(int) Constant 1
41              19:    6(float) Constant 1065353216
42              20:             TypePointer Output 6(float)
43              22:     16(int) Constant 2
44              23:     16(int) Constant 0
45              24:    6(float) Constant 1073741824
46              26:    7(fvec4) ConstantComposite 19 19 19 19
47              27:             TypePointer Output 7(fvec4)
48         4(main):           2 Function None 3
49               5:             Label
50              21:     20(ptr) AccessChain 15 17 18
51                              Store 21 19
52              25:     20(ptr) AccessChain 15 22 23
53                              Store 25 24
54              28:     27(ptr) AccessChain 15 23
55                              Store 28 26
56                              Return
57                              FunctionEnd