Overte C++ Documentation
procedural/src/procedural/ShaderConstants.h
1 // <!
2 // Created by Bradley Austin Davis on 2018/05/25
3 // Copyright 2013-2018 High Fidelity, Inc.
4 //
5 // Distributed under the Apache License, Version 2.0.
6 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7 // !>
8 
9 // <@if not PROCEDURAL_SHADER_CONSTANTS_H@>
10 // <@def PROCEDURAL_SHADER_CONSTANTS_H@>
11 
12 // Hack comment to absorb the extra '//' scribe prepends
13 
14 #ifndef PROCEDURAL_SHADER_CONSTANTS_H
15 #define PROCEDURAL_SHADER_CONSTANTS_H
16 
17 #define PROCEDURAL_BUFFER_INPUTS 7
18 
19 #define PROCEDURAL_UNIFORM_CUSTOM 220
20 
21 #define PROCEDURAL_TEXTURE_CHANNEL0 2
22 #define PROCEDURAL_TEXTURE_CHANNEL1 3
23 #define PROCEDURAL_TEXTURE_CHANNEL2 4
24 #define PROCEDURAL_TEXTURE_CHANNEL3 5
25 
26 // <!
27 
28 namespace procedural { namespace slot {
29 
30 namespace buffer {
31 enum Bufffer {
32  Inputs = PROCEDURAL_BUFFER_INPUTS,
33 };
34 }
35 
36 namespace uniform {
37 enum Uniform {
38  Custom = PROCEDURAL_UNIFORM_CUSTOM,
39 };
40 }
41 
42 namespace texture {
43 enum Texture {
44  Channel0 = PROCEDURAL_TEXTURE_CHANNEL0,
45  Channel1 = PROCEDURAL_TEXTURE_CHANNEL1,
46  Channel2 = PROCEDURAL_TEXTURE_CHANNEL2,
47  Channel3 = PROCEDURAL_TEXTURE_CHANNEL3,
48 };
49 } // namespace texture
50 
51 } } // namespace procedural::slot
52 
53 // !>
54 // Hack Comment
55 
56 #endif // PROCEDURAL_SHADER_CONSTANTS_H
57 
58 // <@if 1@>
59 // Trigger Scribe include
60 // <@endif@> <!def that !>
61 
62 // <@endif@>
63 
64 // Hack Comment
A simple object wrapper for an OpenGL texture.
Definition: material-networking/src/material-networking/TextureCache.h:39