#include <fillpolicy.h>
Public Member Functions | |
virtual void | fill (uint numElements, T *data) const override |
![]() | |
BaseFillPolicy ()=default | |
virtual | ~BaseFillPolicy ()=default |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
T | mConstant = T() |
Property 'Constant'. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Typed fill policy for constant values. Fills buffer with a specified constant.
Fill policies are initialization utilities that can help fill large blocks of preallocated memory. The fill function assigns a contiguous block of data based on the specified arguments.
Fill policies can be bound to another resource's property (i.e. ValueGPUBuffer) in configuration. Typically, an object will first check if a policy is available, and if so, use it to fill an internal buffer. Any object accepting a fill policy is free to implement the way fill() is used in their own way however.
|
overridevirtual |
Fills the preallocated data
numElements | the number of elements to fill |
data | pointer to the preallocated data |
Implements FillPolicy< T >.
T mConstant = T() |
Property 'Constant'.