Module gfx::pso::buffer [] [src]

Buffer components for a PSO.

Structs

ConstantBuffer

Constant buffer component.

Element

A struct element descriptor.

Global

Global (uniform) constant component. Describes a free-standing value passed into the shader, which is not enclosed into any constant buffer. Deprecated in DX10 and higher.

RawConstantBuffer

Raw constant buffer component.

RawVertexBuffer

Raw vertex/instance buffer component. Can be used when the formats of vertex attributes are not known at compile time.

VertexBufferCommon

Service struct to simplify the implementations of VertexBuffer and InstanceBuffer.

Traits

Structure

A trait to be implemented by any struct having the layout described in the graphics API, like a vertex buffer.

Type Definitions

BufferIndex

Index of a vertex buffer.

ElemOffset

Offset of an attribute from the start of the buffer, in bytes

ElemStride

Offset between attribute values, in bytes

InstanceBuffer

Instance buffer component. Same as the vertex buffer but advances per instance.

InstanceRate

The number of instances between each subsequent attribute value

VertexBuffer

Vertex buffer component. Advanced per vertex.