Struct gfx_device_gl::Device [] [src]

pub struct Device {
    // some fields omitted
}

An OpenGL device with GLSL shaders.

Methods

impl Device
[src]

unsafe fn with_gl<F: FnMut(&Gl)>(&mut self, fun: F)

Access the OpenGL directly via a closure. OpenGL types and enumerations can be found in the gl crate.

fn get_info<'a>(&'a self) -> &'a Info

Get the OpenGL-specific driver information

Trait Implementations

impl Device for Device
[src]

type Resources = Resources

Associated resources type.

type CommandBuffer = CommandBuffer<Self::Resources>

Associated command buffer type.

fn get_capabilities<'a>(&'a self) -> &'a Capabilities

Returns the capabilities available to the specific API implementation.

fn reset_state(&mut self)

Reset all the states to disabled/default.

fn submit(&mut self, (cb, db, handles): SubmitInfo<Device>)

Submit a command buffer for execution.

fn cleanup(&mut self)

Cleanup unused resources, to be called between frames.

impl DeviceFence<Resources> for Device
[src]

fn fenced_submit(&mut self, info: SubmitInfo<Device>, after: Option<Fence<Resources>>) -> Fence<Resources>

Submit a command buffer to the stream creating a fence the fence is signaled after the GPU has executed all commands in the buffer Read more

fn fence_wait(&mut self, fence: &Fence<Resources>)

Wait on the supplied fence stalling the current thread until the fence is satisfied Read more