Trait gfx::device::Device
[−]
[src]
pub trait Device {
type Resources: Resources;
type CommandBuffer: CommandBuffer<Self::Resources>;
fn get_capabilities<'a>(&'a self) -> &'a Capabilities;
fn reset_state(&mut self);
fn submit(&mut self, SubmitInfo<Self>);
fn after_frame(&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>(&'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 after_frame(&mut self)
Notify the finished frame