gz/rendering/ShaderParam.hh
Go to the documentation of this file.
@ PARAM_FLOAT_BUFFER
Float Buffer type parameter.
Definition: gz/rendering/ShaderParam.hh:55
STL class.
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
@ PARAM_INT_BUFFER
Int Buffer type parameter.
Definition: gz/rendering/ShaderParam.hh:58
bool Value(float *_value) const
Get the value of this parameter if it is a float.
@ PARAM_NONE
Type none.
Definition: gz/rendering/ShaderParam.hh:46
a variant type that holds params that can be passed to a shader
Definition: gz/rendering/ShaderParam.hh:41
void UpdateBuffer(float *_floatBuffer)
Copy a buffer to this parameter.
void SetTexture(const std::string &_value, ShaderParam::ParamType _type=ShaderParam::ParamType::PARAM_TEXTURE, uint32_t _uvSetIndex=0u)
Set this to be a texture parameter.
ShaderParam & operator=(const ShaderParam &_other)
Set from another ShaderParam.
uint32_t Count() const
Get the element count of this parameter's buffer.
bool Buffer(std::shared_ptr< void > &_buffer) const
Get the value of this parameter if it is a buffer.
@ PARAM_TEXTURE_CUBE
cube map type parameter
Definition: gz/rendering/ShaderParam.hh:64
@ PARAM_INT
Integer type parameter.
Definition: gz/rendering/ShaderParam.hh:52
@ PARAM_TEXTURE
texture type parameter
Definition: gz/rendering/ShaderParam.hh:61
void InitializeBuffer(uint32_t _count)
Set this to be a buffer parameter.
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
@ PARAM_FLOAT
Float type parameter.
Definition: gz/rendering/ShaderParam.hh:49