Struct gfx_device_gl::Device
source · pub struct Device { /* private fields */ }
Expand description
An OpenGL device with GLSL shaders.
Implementations
Trait Implementations
sourceimpl Device for Device
impl Device for Device
type CommandBuffer = CommandBuffer
type CommandBuffer = CommandBuffer
Associated
CommandBuffer
type. Every Device
type can only work with one CommandBuffer
type. Read moresourcefn get_capabilities(&self) -> &Capabilities
fn get_capabilities(&self) -> &Capabilities
Returns the capabilities of this
Device
.sourcefn pin_submitted_resources(&mut self, man: &Manager<Resources>)
fn pin_submitted_resources(&mut self, man: &Manager<Resources>)
Pin everything from this handle manager to live for a frame.
sourcefn submit(
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>
) -> SubmissionResult<()>
fn submit(
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>
) -> SubmissionResult<()>
Submits a
CommandBuffer
to the GPU for execution.sourcefn fenced_submit(
&mut self,
cb: &mut CommandBuffer,
access: &AccessInfo<Resources>,
after: Option<Fence<Resources>>
) -> SubmissionResult<Fence<Resources>>
fn fenced_submit(
&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 moresourcefn wait_fence(&mut self, fence: &Fence<Self::Resources>)
fn wait_fence(&mut self, fence: &Fence<Self::Resources>)
Stalls the current thread until the fence is satisfied
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more