Support Forum G3D Web Page |
This contains the value of a uniform or macro argument passed to shader and its type Macro variables can only be a subset of the possible values. More...
Public Member Functions | |
Arg () | |
Arg (GLenum t) | |
Arg (GLenum t, bool o) | |
void | set (bool val, bool optional) |
void | set (int32 val, bool optional) |
void | set (uint32 val, bool optional) |
void | set (double val, bool optional) |
void | set (float val, bool optional) |
void | set (const Vector2 &vec, bool optional) |
void | set (const Vector3 &vec, bool optional) |
void | set (const Vector4 &vec, bool optional) |
void | set (const Color1 &col, bool optional) |
void | set (const Color3 &col, bool optional) |
void | set (const Color4 &col, bool optional) |
void | set (const Matrix2 &mat, bool optional) |
void | set (const Matrix3 &mat, bool optional) |
void | set (const Matrix2x3 &mat, bool optional) |
void | set (const Matrix4 &mat, bool optional) |
void | set (const CoordinateFrame &cframe, bool optional) |
void | set (const Vector2int32 &vec, bool optional) |
void | set (const Vector2uint32 &vec, bool optional) |
void | set (const Vector3int32 &vec, bool optional) |
void | set (const Vector2int16 &vec, bool optional) |
void | set (const Vector3int16 &vec, bool optional) |
void | set (const Vector4int16 &vec, bool optional) |
void | set (const Vector4uint16 &vec, bool optional) |
String | toString () const |
Public Attributes | |
shared_ptr< BufferTexture > | bufferTexture |
shared_ptr< BindlessTextureHandle > | handle |
int | index |
If this arg is an element of a glsl array, this is its index in the array. More... | |
bool | optional |
shared_ptr< GLSamplerObject > | sampler |
Empty unless this argument is an OpenGL Sampler. More... | |
shared_ptr< Texture > | texture |
Empty unless this argument is an OpenGL Sampler or Image (that is not a buffer) More... | |
GLenum | type |
SmallArray< Scalar, 6 > | value |
This contains the value of a uniform or macro argument passed to shader and its type Macro variables can only be a subset of the possible values.
|
inline |
|
inline |
|
inline |
void G3D::UniformTable::Arg::set | ( | bool | val, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | int32 | val, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | uint32 | val, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | double | val, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | float | val, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Vector2 & | vec, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Vector3 & | vec, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Vector4 & | vec, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Color1 & | col, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Color3 & | col, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Color4 & | col, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Matrix2 & | mat, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Matrix3 & | mat, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Matrix2x3 & | mat, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Matrix4 & | mat, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const CoordinateFrame & | cframe, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Vector2int32 & | vec, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Vector2uint32 & | vec, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Vector3int32 & | vec, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Vector2int16 & | vec, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Vector3int16 & | vec, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Vector4int16 & | vec, |
bool | optional | ||
) |
void G3D::UniformTable::Arg::set | ( | const Vector4uint16 & | vec, |
bool | optional | ||
) |
String G3D::UniformTable::Arg::toString | ( | ) | const |
shared_ptr<BufferTexture> G3D::UniformTable::Arg::bufferTexture |
shared_ptr<BindlessTextureHandle> G3D::UniformTable::Arg::handle |
int G3D::UniformTable::Arg::index |
If this arg is an element of a glsl array, this is its index in the array.
If this arg is not an element of an array, its index is -1
bool G3D::UniformTable::Arg::optional |
shared_ptr<GLSamplerObject> G3D::UniformTable::Arg::sampler |
Empty unless this argument is an OpenGL Sampler.
shared_ptr<Texture> G3D::UniformTable::Arg::texture |
GLenum G3D::UniformTable::Arg::type |
SmallArray<Scalar, 6> G3D::UniformTable::Arg::value |