Struct gfx_core::dummy::DummyDevice
[−]
[src]
pub struct DummyDevice { /* fields omitted */ }Dummy device which does minimal work, just to allow testing gfx-rs apps for compilation.
Methods
impl DummyDevice[src]
pub fn new() -> DummyDevice[src]
Create a new dummy device
Trait Implementations
impl Device for DummyDevice[src]
type Resources = DummyResources
Associated Resources type.
type CommandBuffer = DummyCommandBuffer
Associated CommandBuffer type. Every Device type can only work with one CommandBuffer type. Read more
fn get_capabilities(&self) -> &Capabilities[src]
Returns the capabilities of this Device.
fn pin_submitted_resources(&mut self, _: &Manager<DummyResources>)[src]
Pin everything from this handle manager to live for a frame.
fn submit(
&mut self,
_: &mut DummyCommandBuffer,
_: &AccessInfo<Self::Resources>
) -> SubmissionResult<()>[src]
&mut self,
_: &mut DummyCommandBuffer,
_: &AccessInfo<Self::Resources>
) -> SubmissionResult<()>
Submits a CommandBuffer to the GPU for execution.
fn fenced_submit(
&mut self,
_: &mut Self::CommandBuffer,
_: &AccessInfo<Self::Resources>,
_after: Option<Fence<Self::Resources>>
) -> SubmissionResult<Fence<Self::Resources>>[src]
&mut self,
_: &mut Self::CommandBuffer,
_: &AccessInfo<Self::Resources>,
_after: Option<Fence<Self::Resources>>
) -> SubmissionResult<Fence<Self::Resources>>
Submits a CommandBuffer to the GPU for execution. returns a fence that is signaled after the GPU has executed all commands Read more
fn wait_fence(&mut self, _: &Fence<Self::Resources>)[src]
Stalls the current thread until the fence is satisfied
fn cleanup(&mut self)[src]
Cleanup unused resources. This should be called between frames.