Represents an attribute defined by hardware shaders a.k.a real-time shaders. CHardwareAttribute is typically used for defining standard vertex semantics (siHardwareInputSemantic) used in shader languages such as CgFX and HLSL. CHardwareAttribute can also be used for defining shader parameters of siShaderParameterType type.
Hardware attributes are defined through the hardware shader's GetAttributeList callback.
#include <xsi_hardwareattribute.h>
Public Member Functions | |
CHardwareAttribute () | |
virtual | ~CHardwareAttribute () |
CHardwareAttribute (const CHardwareAttribute &valSrc) | |
CHardwareAttribute & | operator= (const CHardwareAttribute &valSrc) |
bool | operator== (const CHardwareAttribute &valSrc) const |
bool | operator!= (const CHardwareAttribute &valSrc) const |
CStatus | PutSemanticValue (const siHardwareInputSemantic inSemantic, const CValue &valSrc) |
XSI::siHardwareInputSemantic | GetSemantic () const |
XSI::CValue | GetSemanticValue () const |
CStatus | SetAttributeData (XSI::CValue in_data, XSI::siShaderParameterType in_type, ULONG in_ulArraySize) |
XSI::CValue | GetAttributeData () |
XSI::siShaderParameterType | GetAttributeType () |
ULONG | GetAttributeArraySize () |
Default constructor.
virtual ~CHardwareAttribute | ( | ) | [virtual] |
Default destructor.
CHardwareAttribute | ( | const CHardwareAttribute & | valSrc | ) |
Constructor.
valSrc | CHardwareAttribute object |
CHardwareAttribute& operator= | ( | const CHardwareAttribute & | valSrc | ) |
Assignment
valSrc | CHardwareAttribute value |
bool operator== | ( | const CHardwareAttribute & | valSrc | ) | const |
Comparison
valSrc | CHardwareAttribute value |
bool operator!= | ( | const CHardwareAttribute & | valSrc | ) | const |
Inequality
valSrc | CHardwareAttribute value |
CStatus PutSemanticValue | ( | const siHardwareInputSemantic | inSemantic, |
const CValue & | valSrc | ||
) |
Put the value for the selected semantic inSemantic siHardwareInputSemantic semantic
valSrc | CValue value |
XSI::siHardwareInputSemantic GetSemantic | ( | ) | const |
Gets the semantic
XSI::CValue GetSemanticValue | ( | ) | const |
Gets the value
CStatus SetAttributeData | ( | XSI::CValue | in_data, |
XSI::siShaderParameterType | in_type, | ||
ULONG | in_ulArraySize | ||
) |
set the attribute data and type
XSI::CValue GetAttributeData | ( | ) |
Get the attribute data
XSI::siShaderParameterType GetAttributeType | ( | ) |
Get the attribute data
ULONG GetAttributeArraySize | ( | ) |
Get the size of the array (returns 1 if the data is not an array)