Trait gfx::traits::Device [] [src]

pub trait Device {
    type Resources: Resources;
    type CommandBuffer: CommandBuffer<Self::Resources>;
    fn get_capabilities(&self) -> &Capabilities;
    fn pin_submitted_resources(&mut self, &Manager<Self::Resources>);
    fn submit(&mut self, &mut Self::CommandBuffer);
    fn cleanup(&mut self);
}
[]

A Device is responsible for submitting CommandBuffers to the GPU.

Associated Types

[]

Associated Resources type.

[]

Associated CommandBuffer type. Every Device type can only work with one CommandBuffer type.

Required Methods

[]

Returns the capabilities of this Ðevice.

[]

Pin everything from this handle manager to live for a frame.

[]

Submits a CommandBuffer to the GPU for execution.

[]

Cleanup unused resources. This should be called between frames.

Implementors