Struct gfx_device_gl::Device
[−]
[src]
pub struct Device { /* fields omitted */ }An OpenGL device with GLSL shaders.
Methods
impl Device[src]
pub unsafe fn with_gl<F: FnMut(&Gl)>(&mut self, fun: F)[src]
Access the OpenGL directly via a closure. OpenGL types and enumerations
can be found in the gl crate.
pub fn get_info<'a>(&'a self) -> &'a Info[src]
Get the OpenGL-specific driver information
Trait Implementations
impl Device for Device[src]
type Resources = Resources
Associated Resources type.
type CommandBuffer = CommandBuffer
Associated CommandBuffer type. Every Device type can only work with one CommandBuffer type. Read more
fn get_capabilities(&self) -> &Capabilities[src]
Returns the capabilities of this Device.
fn pin_submitted_resources(&mut self, man: &Manager<Resources>)[src]
Pin everything from this handle manager to live for a frame.
fn submit(
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>
) -> SubmissionResult<()>[src]
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>
) -> SubmissionResult<()>
Submits a CommandBuffer to the GPU for execution.
fn fenced_submit(
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>,
after: Option<Fence<Resources>>
) -> SubmissionResult<Fence<Resources>>[src]
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>,
after: Option<Fence<Resources>>
) -> SubmissionResult<Fence<Resources>>
Submits a CommandBuffer to the GPU for execution. returns a fence that is signaled after the GPU has executed all commands Read more
fn wait_fence(&mut self, fence: &Fence<Self::Resources>)[src]
Stalls the current thread until the fence is satisfied
fn cleanup(&mut self)[src]
Cleanup unused resources. This should be called between frames.