class
TGpuParameterPrimitive
template<class T, bool IsRenderProxy>A handle that allows you to set a GpuProgram parameter.
Internally keeps a reference to the GPU parameter buffer and the necessary offsets. You should specialize this type for specific parameter types.
Object of this type must be returned by a Material. Setting/Getting parameter values will internally access a GPU parameter buffer attached to the Material this parameter was created from. Anything rendered with that material will then use those set values.
Public
Constructors
TGpuParameterPrimitive<T, IsRenderProxy>
TGpuParameterPrimitive<T, IsRenderProxy>()
TGpuParameterPrimitive<T, IsRenderProxy>
TGpuParameterPrimitive<T, IsRenderProxy>(const GpuUniformBufferMemberInformation *parameterInformation, const GpuParamsType &parent)
Methods
Set
void Set(const T &value, u32 arrayIdx = 0) const
Sets a parameter value at the specified array index.
If parameter does not contain an array leave the index at 0.
Get
T Get(u32 arrayIdx = 0) const
Returns a value of a parameter at the specified array index.
If parameter does not contain an array leave the index at 0.
Operators
operator==
bool operator==(const std::nullptr_t &nullval) const
Checks if param is initialized.
Protected
Fields
mParent
GpuParamsType mParent
mParameterInformation
const GpuUniformBufferMemberInformation * mParameterInformation