Summary

RenderAttributes are a set of values that are passed to the renderer. They can be a variety of primitive types, textures, samplers or buffers. You can access attributes in the shader by binding them to a variable:
float4 CornerRadius < Attribute( "BorderRadius" ); >;
Texture2D g_tColor 	< Attribute( "Texture" ); SrgbRead( false ); >;
['seealso']['seealso']['seealso']

Constructors

RenderAttributes

Methods

Clear
Finalize
GetAngles Get a vector4 value - else defaultValue if missing
GetBool Get a bool value - else defaultValue if missing
GetComboBool
GetComboEnum
GetComboInt
GetFloat Get a float value - else defaultValue if missing
GetInt Get a int value - else defaultValue if missing
GetMatrix Get a matrix value - else defaultValue if missing
GetTexture Get a texture value - else defaultValue if missing
GetVector Get a vector3 value - else defaultValue if missing
GetVector4 Get a vector4 value - else defaultValue if missing
Set
SetCombo
SetComboEnum
SetData
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.