Shader.opIndexAssign
- void opIndexAssign(float x, const(char)[] name)
- void opIndexAssign(ref const(Vec2) vector, const(char)[] name)
- void opIndexAssign(ref const(Vec3) vector, const(char)[] name)
- void opIndexAssign(ref const(Vec4) vector, const(char)[] name)
- void opIndexAssign(int x, const(char)[] name)
- void opIndexAssign(ref const(Ivec2) vector, const(char)[] name)
- void opIndexAssign(ref const(Ivec3) vector, const(char)[] name)
- void opIndexAssign(ref const(Ivec4) vector, const(char)[] name)
- void opIndexAssign(bool x, const(char)[] name)
- void opIndexAssign(ref const(Bvec2) vector, const(char)[] name)
- void opIndexAssign(ref const(Bvec3) vector, const(char)[] name)
- void opIndexAssign(ref const(Bvec4) vector, const(char)[] name)
- void opIndexAssign(ref const(Mat3) matrix, const(char)[] name)
- void opIndexAssign(ref const(Mat4) matrix, const(char)[] name)
- void opIndexAssign(const(Texture) texture, const(char)[] name)
- void opIndexAssign(CurrentTextureType, const(char)[] name)
- void opIndexAssign(const(float)[] scalars, const(char)[] name)
- void opIndexAssign(const(Vec2)[] vectors, const(char)[] name)
- void opIndexAssign(const(Vec3)[] vectors, const(char)[] name)
- void opIndexAssign(const(Vec4)[] vectors, const(char)[] name)
- void opIndexAssign(const(Mat3)[] matrices, const(char)[] name)
- void opIndexAssign(const(Mat4)[] matrices, const(char)[] name)
- void opIndexAssign(Color color, const(char)[] name)
- void opIndexAssign(Transform transform, const(char)[] name)
- void setUniform(const(char)[] name, const(Texture) texture)
dsfmlgraphicsshaderShader
constructorsdestructorsenumsfunctionsstatic functionsstatic variablesstructs
Specify a texture as sampler2D uniform.
'name' is the name of the variable to change in the shader. The corresponding parameter in the shader must be a 2D texture (sampler2D GLSL type).
It is important to note that texture must remain alive as long as the shader uses it, no copy is made internally.
To use the texture of the object being drawn, which cannot be known in advance, you can pass the special value CurrentTexture.