Module gfx::pso::buffer

source ·
Expand description

Buffer components for a PSO.

Structs

  • Constant buffer component.
  • A struct element descriptor.
  • Global (uniform) constant component. Describes a free-standing value passed into the shader, which is not enclosed into any constant buffer.
  • Raw constant buffer component.
  • Raw global (uniform) constant component. Describes a free-standing value passed into the shader, which is not enclosed in any constant buffer.
  • Raw vertex/instance buffer component. Can be used when the formats of vertex attributes are not known at compile time.
  • Service struct to simplify the implementations of VertexBuffer and InstanceBuffer.

Enums

  • Helper phantom type for per-instance attributes.
  • Helper phantom type for per-vertex attributes.

Traits

  • A trait to be implemented by any struct having the layout described in the graphics API, like a vertex buffer.
  • Helper trait for VertexBufferCommon to support variable instance rate.

Type Definitions

  • Index of a vertex buffer.
  • Offset of an attribute from the start of the buffer, in bytes
  • Offset between attribute values, in bytes
  • Instance buffer component. Same as the vertex buffer but advances per instance.
  • The number of instances between each subsequent attribute value
  • Vertex buffer component. Advanced per vertex.