BindLocation
U32 = 1 Stored with the texture slot, see X3DSharedData.
Uncategorized - no domain claims this class yet. Categorize
A shared texture slot: a texture that shaders find by name. See X3DSharedData for registration, filtering,
register and BindLocation.
When the client creates the slot, it also creates a 1x1 default texture of the
dimension that type selects, filled with DefaultValue. Slots with the same type,
DefaultValue and TextureElementType share one default texture.
U32 = 1 Stored with the texture slot, see X3DSharedData.
Vec4 = [0, 0, 0, 0] The colour of the default texture, (r, g, b, a).
U8 = 4 Purpose not yet identified. The client does not read it when it creates the slot.
Bool = false The client stores it with the texture slot. What it changes is not yet identified.
U32 = 0 The platforms on which the slot loads, see X3DSharedData.
The shared sampler that the client stores with the texture, found by the linked sampler's name. If PlatformMask or ShaderModel filter that sampler out, the texture has no sampler.
U8 = 0 The renderer mode in which the slot loads, see X3DSharedData.
U8 = 0 Selects the pixel format of the default texture: 1 and 2 give one format, any other value another. Which formats these are is not yet identified.
U8 = 0 Purpose not yet identified. The client does not read it when it creates the slot.
String = "" The name under which shaders find the texture. Before the lookup, the client strips the suffix _SharedTexture or __TX from the name that the shader declares.
I32 = -1 If -1, the client binds the texture per effect. Any other value leaves it out of the effect bindings. See X3DSharedData.
U8 = 0 The dimension of the default texture:
| Value | Default texture |
|---|---|
0 |
2D |
1 |
3D |
2 |
Cube map |
3 |
2D. Shipped data uses it for the shadow map depth texture. |
4 |
Cube map. Shipped data uses it for the point-light shadow map depth texture. |
5 |
2D array |
6 |
2D array |
7 |
Cube map array |
8 |
Cube map array |
A value above 8 creates no default texture. What distinguishes the values of each
pair is not yet identified.