Crate gfx [] [src]

An efficient, low-level, bindless graphics API for Rust. See the blog for explanations and annotated examples.

Reexports

pub use draw_state::target::*;
pub use device::{Device, SubmitInfo, Factory, Resources};
pub use device::{attrib, tex, handle};
pub use device::as_byte_slice;
pub use device::{BufferRole, BufferInfo, BufferUsage};
pub use device::{VertexCount, InstanceCount};
pub use device::PrimitiveType;
pub use device::draw::{CommandBuffer, Gamma, InstanceOption};
pub use device::shade::{ProgramInfo, UniformValue};
pub use render::{Renderer, BlitError, DrawError, UpdateError};
pub use render::batch;
pub use render::mesh::{Attribute, Mesh, VertexFormat};
pub use render::mesh::Error as MeshError;
pub use render::mesh::{Slice, ToIndexSlice, ToSlice, SliceKind};
pub use render::shade;
pub use render::target::{Frame, Output, Plane};
pub use render::ParamStorage;
pub use extra::shade::{ShaderSource, ProgramError};
pub use extra::stream::{OwnedStream, Stream, Window};

Modules

device

Graphics device. Not meant for direct use.

extra

Renderer extensions.

macros

Macros for deriving VertexFormat and ShaderParam.

render

High-level, platform independent, bindless rendering API.

state

Fixed-function hardware state.

traits

public re-exported traits

Macros

gfx_parameters!
gfx_vertex!

Structs

DrawState

An assembly of states that affect regular draw calls

Enums

BlendPreset

Blend function presets for ease of use.