Struct gfx_device_gl::Device [−][src]
pub struct Device { /* fields omitted */ }
An OpenGL device with GLSL shaders.
Implementations
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]
fn pin_submitted_resources(&mut self, man: &Manager<Resources>)
[src]
fn submit(
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>
) -> SubmissionResult<()>
[src]
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>
) -> SubmissionResult<()>
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>>
fn wait_fence(&mut self, fence: &Fence<Self::Resources>)
[src]
fn cleanup(&mut self)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Device
impl !Send for Device
impl !Sync for Device
impl Unpin for Device
impl !UnwindSafe for Device
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,