-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewtypes.xml
39 lines (39 loc) · 2.26 KB
/
newtypes.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<newtypes>
<newtype name="UniformLocation">
<type>GLint</type>
<injects>
<inject>
<action method="insert" xpath='/registry/commands/command[contains(proto/name, "Uniform")]/param[name = "location"]' type="attr" name="newtype" value="UniformLocation" />
<action method="insert" xpath='/registry/commands/command/proto[contains(name, "glGetUniformLocation") or contains(name, "glGetSubroutineUniformLocation")]' type="attr" name="newtype" value="UniformLocation" />
<action method="insert" xpath='/registry/commands/command/proto[contains(name, "glGetUniformLocation") or contains(name, "glGetSubroutineUniformLocation")]' type="attr" name="validation" value=">= 0" />
</inject>
</injects>
</newtype>
<newtype name="AttribLocation">
<type>GLuint</type>
<injects>
<inject>
<action method="insert" xpath='/registry/commands/command[contains(proto/name, "VertexAttrib") or contains(proto/name, "VertexArrayAttrib") or contains(proto/name, "glBindAttribLocation")]/param[name = "attribindex" or name = "index"]' type="attr" name="newtype" value="AttribLocation" />
<action method="insert" xpath='/registry/commands/command/proto[contains(name, "glGetAttribLocation")]' type="attr" name="newtype" value="AttribLocation" />
<action method="insert" xpath='/registry/commands/command/proto[contains(name, "glGetAttribLocation")]' type="attr" name="validation" value=">= 0" />
</inject>
</injects>
</newtype>
<newtype name="BindingIndex">
<type>GLuint</type>
<injects>
<inject>
<action method="insert" xpath='/registry/commands/command[contains(proto/name, "Vertex")]/param[name = "bindingindex"]' type="attr" name="newtype" value="BindingIndex" />
</inject>
</injects>
</newtype>
<newtype name="TextureUnit">
<type>GLenum</type>
<injects>
<inject>
<action method="insert" xpath='/registry/commands/command/param[@group = "TextureUnit"]' type="attr" name="newtype" value="TextureUnit" />
</inject>
</injects>
</newtype>
</newtypes>