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}; |
pub use device::shade::{ProgramInfo, UniformValue}; |
pub use render::{Renderer, DrawError}; |
pub use render::batch; |
pub use render::mesh::{Attribute, Mesh, VertexFormat}; |
pub use render::mesh::Error as MeshError; |
pub use render::mesh::{Slice, ToSlice, SliceKind}; |
pub use render::shade; |
pub use render::target::{Frame, Output, Plane}; |
pub use render::ParamStorage; |
pub use extra::canvas::{Canvas, Window}; |
pub use extra::device::Graphics; |
pub use extra::shade::{ShaderSource, ProgramError}; |
pub use extra::stream::{OwnedStream, Stream}; |
Modules
device |
Graphics device. Not meant for direct use. |
extra |
Renderer extensions. |
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. |