Shader constants buffer.
Public Member Functions | |
| virtual iShaderConstants * | Clone () const =0 |
| Clone this constant buffer. More... | |
| virtual tU32 | GetMaxNumRegisters () const =0 |
| Get the constants buffer maximum number of registers. {Property}. More... | |
| virtual tU32 | AddConstant (iHString *ahspName, eShaderRegisterType aType, tU32 anSize)=0 |
| Add a new constant. More... | |
| virtual tU32 | GetNumConstants () const =0 |
| Get the number of constants in the buffer. {Property}. More... | |
| virtual tU32 | GetConstantIndex (iHString *ahspName) const =0 |
| Get the index of the specified constant. {Property}. More... | |
| virtual iHString * | GetConstantName (tU32 anConstIndex) const =0 |
| Get the name of the specified constant. {Property}. More... | |
| virtual tU32 | GetConstantSize (tU32 anConstIndex) const =0 |
| Get the size of the constant at the specified index. {Property}. More... | |
| virtual eShaderRegisterType | GetConstantType (tU32 anConstIndex) const =0 |
| Get the type of the specified constant. {Property}. More... | |
| virtual tBool | SetHwIndex (tU32 anConstIndex, tU32 anRegisterIndex)=0 |
| Set the hardware register index of the specified constant. More... | |
| virtual tU32 | GetHwIndex (tU32 anConstIndex) const =0 |
| Get the hardware register index of the specified constant. {Property}. More... | |
| virtual tBool | SetFloatArray (tU32 anConstIndex, const tVec4fCVec *apV, tU32 anSize=1)=0 |
| Set a float constant from 4D vectors. More... | |
| virtual tBool | SetFloatPointer (tU32 anConstIndex, const sVec4f *apV, tU32 anSize=1)=0 |
| Set a float constant from 4D vectors. {NoAutomation}. More... | |
| virtual tBool | SetFloat (tU32 anConstIndex, const sVec4f &aV)=0 |
| Set a float constant from 4D vectors. More... | |
| virtual tBool | SetFloatMatrixArray (tU32 anConstIndex, const tMatrixfCVec *apV, tU32 anSize=1)=0 |
| Set four float constants from matrices. More... | |
| virtual tBool | SetFloatMatrix (tU32 anConstIndex, const sMatrixf &aV)=0 |
| Set four float constants from matrices. More... | |
| virtual tBool | SetIntArray (tU32 anConstIndex, const tVec4iCVec *apV, tU32 anSize=1)=0 |
| Set an integer constant from 4D vectors. More... | |
| virtual tBool | SetIntPointer (tU32 anConstIndex, const sVec4i *apV, tU32 anSize=1)=0 |
| Set an integer constant from 4D vectors. {NoAutomation}. More... | |
| virtual tBool | SetInt (tU32 anConstIndex, const sVec4i &aV)=0 |
| Set an integer constant from 4D vectors. More... | |
| virtual sVec4f | GetFloat (tU32 anConstIndex, tU32 anOffset) const =0 |
| Get the float constant at the specified index. More... | |
| virtual sMatrixf | GetFloatMatrix (tU32 anConstIndex) const =0 |
| Get the float constant matrix at the specified index. More... | |
| virtual sVec4f * | GetFloatPointer (tU32 anConstIndex) const =0 |
| Get the float constant pointer at the specified index. {NoAutomation}. More... | |
| virtual sVec4i | GetInt (tU32 anConstIndex, tU32 anOffset) const =0 |
| Get the float constant at the specified index. More... | |
| virtual sVec4i * | GetIntPointer (tU32 anConstIndex) const =0 |
| Get the float constant pointer at the specified index. {NoAutomation}. More... | |
| virtual tPtr | GetDescStructPtr () const =0 |
| Get the shader constants buffer description structure pointer. {Property}. More... | |
| virtual void | SetConstantMetadata (tU32 anConstIndex, iHString *ahspMetadata)=0 |
| Set the metadata of the specified constant. {Property}. More... | |
| virtual iHString * | GetConstantMetadata (tU32 anConstIndex) const =0 |
| Get the metadata of the specified constant. {Property}. More... | |
Public Member Functions inherited from iSerializable | |
| virtual const achar * | GetSerializeObjectTypeID () const =0 |
| Get the object type ID. More... | |
| virtual tSize | Serialize (iFile *apFile, eSerializeMode aMode)=0 |
| Serialize the object. More... | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Clone this constant buffer.
|
pure virtual |
Get the constants buffer maximum number of registers. {Property}.
|
pure virtual |
Add a new constant.
|
pure virtual |
Get the number of constants in the buffer. {Property}.
Get the index of the specified constant. {Property}.
Get the name of the specified constant. {Property}.
Get the size of the constant at the specified index. {Property}.
|
pure virtual |
Get the type of the specified constant. {Property}.
Set the hardware register index of the specified constant.
Get the hardware register index of the specified constant. {Property}.
|
pure virtual |
Set a float constant from 4D vectors.
|
pure virtual |
Set a float constant from 4D vectors. {NoAutomation}.
Set a float constant from 4D vectors.
|
pure virtual |
Set four float constants from matrices.
Set four float constants from matrices.
|
pure virtual |
Set an integer constant from 4D vectors.
Set an integer constant from 4D vectors. {NoAutomation}.
Set an integer constant from 4D vectors.
Get the float constant at the specified index.
Get the float constant matrix at the specified index.
Get the float constant pointer at the specified index. {NoAutomation}.
Get the float constant at the specified index.
Get the float constant pointer at the specified index. {NoAutomation}.
|
pure virtual |
Get the shader constants buffer description structure pointer. {Property}.
Set the metadata of the specified constant. {Property}.
1.8.7