Struct gfx_window_sdl::Device
[−]
pub struct Device { /* fields omitted */ }
An OpenGL device with GLSL shaders.
Methods
impl Device
unsafe fn with_gl<F>(&mut self, fun: F) where F: FnMut(&Gl) -> ()
Access the OpenGL directly via a closure. OpenGL types and enumerations
can be found in the gl
crate.
fn get_info(&'a self) -> &'a Info
Get the OpenGL-specific driver information
Trait Implementations
impl Device for Device
type Resources = Resources
type CommandBuffer = CommandBuffer
fn get_capabilities(&self) -> &Capabilities
fn pin_submitted_resources(&mut self, man: &Manager<Resources>)
fn submit(&mut self, cb: &mut CommandBuffer, access: &AccessInfo<Resources>)
fn fenced_submit(&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>,
after: Option<Fence<Resources>>)
-> Fence<Resources>
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>,
after: Option<Fence<Resources>>)
-> Fence<Resources>