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

Buffer components for a PSO.

Structs

ConstantBuffer

Constant buffer component. - init: &str = name of the buffer - data: Buffer<T>

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. - init: &str = name of the constant - data: T = value

RawVertexBuffer

Raw vertex/instance buffer component. - init: ? - data: RawBuffer

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

ElemOffset
ElemStride
InstanceBuffer

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

InstanceRate
VertexBuffer

Vertex buffer component. Advanced per vertex. - init: () - data: Buffer<T>