# Sandbox.RenderAttributes

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:

```csharp
float4 CornerRadius < Attribute( "BorderRadius" ); >;
Texture2D g_tColor 	< Attribute( "Texture" ); SrgbRead( false ); >;
```

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`

## Constructors

- [`RenderAttributes`](/api/Sandbox.RenderAttributes/.ctor)

## Methods

- [`Clear`](/api/Sandbox.RenderAttributes/Clear)
- [`GetAngles`](/api/Sandbox.RenderAttributes/GetAngles): Get a vector4 value - else defaultValue if missing
- [`GetBool`](/api/Sandbox.RenderAttributes/GetBool): Get a bool value - else defaultValue if missing
- [`GetComboBool`](/api/Sandbox.RenderAttributes/GetComboBool)
- [`GetComboEnum`](/api/Sandbox.RenderAttributes/GetComboEnum)
- [`GetComboInt`](/api/Sandbox.RenderAttributes/GetComboInt)
- [`GetFloat`](/api/Sandbox.RenderAttributes/GetFloat): Get a float value - else defaultValue if missing
- [`GetInt`](/api/Sandbox.RenderAttributes/GetInt): Get a int value - else defaultValue if missing
- [`GetMatrix`](/api/Sandbox.RenderAttributes/GetMatrix): Get a matrix value - else defaultValue if missing
- [`GetTexture`](/api/Sandbox.RenderAttributes/GetTexture): Get a texture value - else defaultValue if missing
- [`GetUInt`](/api/Sandbox.RenderAttributes/GetUInt): Get a uint value - else defaultValue if missing
- [`GetVector`](/api/Sandbox.RenderAttributes/GetVector): Get a vector3 value - else defaultValue if missing
- [`GetVector4`](/api/Sandbox.RenderAttributes/GetVector4): Get a vector4 value - else defaultValue if missing
- [`Set`](/api/Sandbox.RenderAttributes/Set)
- [`SetCombo`](/api/Sandbox.RenderAttributes/SetCombo)
- [`SetComboEnum`](/api/Sandbox.RenderAttributes/SetComboEnum)
- [`SetData`](/api/Sandbox.RenderAttributes/SetData)
