#include <RslPlugin.h>
Inherits RslArg_v2.
Inherited by RslArg.
Public Member Functions | |
virtual bool | IsNormal () const =0 |
Returns true if this argument is a normal (or normal array). | |
virtual bool | IsWriteable () const =0 |
Returns true if this argument is writeable. | |
virtual | ~RslArg_v3 () |
Virtual destructor. | |
virtual bool | IsFloat () const =0 |
Returns true if this argument is a float (or float array). | |
virtual bool | IsPoint () const =0 |
Returns true if this argument is a point (or point array). | |
virtual bool | IsVector () const =0 |
Returns true if this argument is a vector (or vector array). | |
virtual bool | IsColor () const =0 |
Returns true if this argument is a color (or color array). | |
virtual bool | IsString () const =0 |
Returns true if this argument is a string (or string array). | |
virtual bool | IsMatrix () const =0 |
Returns true if this argument is a matrix (or matrix array). | |
virtual bool | IsArray () const =0 |
Returns true if this argument is an array. | |
virtual bool | IsVarying () const =0 |
Returns true if this argument is varying. | |
virtual int | GetArrayLength () const =0 |
Get the length of an array argument. | |
virtual unsigned int | NumValues () const =0 |
Get the number of values for this argument. | |
virtual void | GetData (float **data, int *stride) const =0 |
Get the raw data pointer for this argument from the given context, along with the stride, which specifies how much to increment the pointer on each iteration. | |
Static Public Member Functions | |
static unsigned int | NumValues (int argc, const class RslArg **argv) |
Get the maximum number of values for the given arguments. |
For internal use only. User code should always use the most recent version, RslArg.
|
Virtual destructor.
|
|
Get the length of an array argument. The result is undefined if this argument is not an array (call IsArray() first). |
|
Get the raw data pointer for this argument from the given context, along with the stride, which specifies how much to increment the pointer on each iteration. (The stride is zero if the argument is uniform.) Use with caution! Do not read or modify values for inactive points. Use RslContext::GetRunflags to determine which points are active. |
|
Returns true if this argument is an array.
|
|
Returns true if this argument is a color (or color array).
|
|
Returns true if this argument is a float (or float array).
|
|
Returns true if this argument is a matrix (or matrix array).
|
|
Returns true if this argument is a normal (or normal array).
|
|
Returns true if this argument is a point (or point array).
|
|
Returns true if this argument is a string (or string array).
|
|
Returns true if this argument is varying.
|
|
Returns true if this argument is a vector (or vector array).
|
|
Returns true if this argument is writeable. This is useful in varargs plugin functions to verify that output arguments are valid. An argument is writeable if it's a local variable, a shader output parameter, or a global variable (e.g. P, N). |
|
Get the maximum number of values for the given arguments. This method should be used to determine the number of iterations when a plugin function returns values via output arguments. |
|
Get the number of values for this argument. Returns 1 if the argument is uniform. Otherwise it returns the number of points in the context. |