RDVertexAttribute
Vertex attribute (used by RenderingDevice).
Vertex attribute (used by RenderingDevice).
This object is used by RenderingDevice.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
RDVertexAttributeConstructor
public RDVertexAttribute();Properties6
BindingProperty
public uint Binding { get; set; }The index of the buffer in the vertex buffer array to bind this vertex attribute. When set to -1, it defaults to the index of the attribute.
Note: You cannot mix binding explicitly assigned attributes with implicitly assigned ones (i.e. -1). Either all attributes must have their binding set to -1, or all must have explicit bindings.
FormatProperty
public RenderingDevice.DataFormat Format { get; set; }The way that this attribute's data is interpreted when sent to a shader.
FrequencyProperty
public RenderingDevice.VertexFrequency Frequency { get; set; }The rate at which this attribute is pulled from its vertex buffer.
LocationProperty
public uint Location { get; set; }The location in the shader that this attribute is bound to.
OffsetProperty
public uint Offset { get; set; }The number of bytes between the start of the vertex buffer and the first instance of this attribute.
StrideProperty
public uint Stride { get; set; }The number of bytes between the starts of consecutive instances of this attribute.
Methods12
GetBindinguint
public uint GetBinding();uintGetFormatRenderingDevice.DataFormat
public RenderingDevice.DataFormat GetFormat();RenderingDevice.DataFormatGetFrequencyRenderingDevice.VertexFrequency
public RenderingDevice.VertexFrequency GetFrequency();RenderingDevice.VertexFrequencyGetLocationuint
public uint GetLocation();uintGetOffsetuint
public uint GetOffset();uintGetStrideuint
public uint GetStride();uintSetBindingvoid
public void SetBinding(uint pMember);| Name | Type | Default |
|---|---|---|
pMember | uint | — |
SetFormatvoid
public void SetFormat(RenderingDevice.DataFormat pMember);| Name | Type | Default |
|---|---|---|
pMember | RenderingDevice.DataFormat | — |
SetFrequencyvoid
public void SetFrequency(RenderingDevice.VertexFrequency pMember);| Name | Type | Default |
|---|---|---|
pMember | RenderingDevice.VertexFrequency | — |
SetLocationvoid
public void SetLocation(uint pMember);| Name | Type | Default |
|---|---|---|
pMember | uint | — |
SetOffsetvoid
public void SetOffset(uint pMember);| Name | Type | Default |
|---|---|---|
pMember | uint | — |
SetStridevoid
public void SetStride(uint pMember);| Name | Type | Default |
|---|---|---|
pMember | uint | — |