[−][src]Struct gfx_window_sdl::Device
An OpenGL device with GLSL shaders.
Methods
impl Device
[src]
pub unsafe fn with_gl<F>(&mut self, fun: F) where
F: FnMut(&Gl),
[src]
F: FnMut(&Gl),
Access the OpenGL directly via a closure. OpenGL types and enumerations
can be found in the gl
crate.
pub fn get_info(&'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]
fn pin_submitted_resources(&mut self, man: &Manager<Resources>)
[src]
fn submit(
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>
) -> Result<(), SubmissionError>
[src]
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>
) -> Result<(), SubmissionError>
fn fenced_submit(
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>,
after: Option<Fence<Resources>>
) -> Result<Fence<Resources>, SubmissionError>
[src]
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>,
after: Option<Fence<Resources>>
) -> Result<Fence<Resources>, SubmissionError>
fn wait_fence(&mut self, fence: &Fence<<Device as Device>::Resources>)
[src]
fn cleanup(&mut self)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,