Trait gfx::Device
[−]
pub trait Device { type Resources: Resources; type CommandBuffer: CommandBuffer<Self::Resources>; fn get_capabilities(&'a self) -> &'a Capabilities; fn reset_state(&mut self); fn submit(&mut self, SubmitInfo<Self>); fn cleanup(&mut self); }
An interface for performing draw calls using a specific graphics API
Associated Types
type Resources: Resources
Associated resources type.
type CommandBuffer: CommandBuffer<Self::Resources>
Associated command buffer type.
Required Methods
fn get_capabilities(&'a self) -> &'a Capabilities
Returns the capabilities available to the specific API implementation.
fn reset_state(&mut self)
Reset all the states to disabled/default.
fn submit(&mut self, SubmitInfo<Self>)
Submit a command buffer for execution.
fn cleanup(&mut self)
Cleanup unused resources, to be called between frames.
Implementors
impl Device for DummyDevice