yum-mirror/glslang

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

Wint3rNightAllow location on inputs and outputs at any version when generating SPIR-V9a1dc751

main
1.5 KiB34 linesraw
1spv.140.location.vert
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 15
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Vertex 4  "main" 9 11 13
10                              Source GLSL 140
11                              Name 4  "main"
12                              Name 9  "gl_Position"
13                              Name 11  "position"
14                              Name 13  "color"
15                              Decorate 9(gl_Position) BuiltIn Position
16                              Decorate 11(position) Location 0
17                              Decorate 13(color) Location 0
18               2:             TypeVoid
19               3:             TypeFunction 2
20               6:             TypeFloat 32
21               7:             TypeVector 6(float) 4
22               8:             TypePointer Output 7(fvec4)
23  9(gl_Position):      8(ptr) Variable Output
24              10:             TypePointer Input 7(fvec4)
25    11(position):     10(ptr) Variable Input
26       13(color):      8(ptr) Variable Output
27         4(main):           2 Function None 3
28               5:             Label
29              12:    7(fvec4) Load 11(position)
30                              Store 9(gl_Position) 12
31              14:    7(fvec4) Load 11(position)
32                              Store 13(color) 14
33                              Return
34                              FunctionEnd