[][src]Crate surfman

Cross-platform GPU device and surface management.

You can use this crate to multithread a graphics application so that rendering happens on multiple threads, sharing textures among them in the most efficient manner. It may also be useful as a lightweight framework for just initializing rendering in native applications. This is in contrast to crates like SDL, GLFW, winit, and Glutin, all of which have a broader focus in that they manage windowing and the event loop as well.

Re-exports

pub use platform::default::adapter::Adapter;
pub use platform::default::connection::Connection;
pub use platform::default::context::Context;
pub use platform::default::context::ContextDescriptor;
pub use platform::default::device::Device;
pub use platform::default::surface::NativeWidget;
pub use platform::default::surface::Surface;
pub use platform::default::surface::SurfaceDataGuard;
pub use platform::default::surface::SurfaceTexture;
pub use crate::error::Error;
pub use crate::error::WindowingApiError;

Modules

error

Various errors that methods can produce.

platform

Platform-specific backends.

Structs

ContextAttributeFlags
ContextAttributes
ContextID
GLVersion

Describes the OpenGL version that is requested when a context is created.

SurfaceID
SurfaceInfo

Various data about the surface.

Enums

GLApi

The API (OpenGL or OpenGL ES).

SurfaceAccess
SurfaceType