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]
impl DummyDevicepub fn new() -> DummyDevice[src]
pub fn new() -> DummyDeviceCreate a new dummy device
Trait Implementations
impl Device for DummyDevice[src]
impl Device for DummyDevicetype 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]
fn get_capabilities(&self) -> &CapabilitiesReturns the capabilities of this Device.
fn pin_submitted_resources(&mut self, _: &Manager<DummyResources>)[src]
fn pin_submitted_resources(&mut self, _: &Manager<DummyResources>)Pin everything from this handle manager to live for a frame.
fn submit(
&mut self,
_: &mut DummyCommandBuffer,
_: &AccessInfo<Self::Resources>
) -> SubmissionResult<()>[src]
fn submit(
&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]
fn fenced_submit(
&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]
fn wait_fence(&mut self, _: &Fence<Self::Resources>)Stalls the current thread until the fence is satisfied
fn cleanup(&mut self)[src]
fn cleanup(&mut self)Cleanup unused resources. This should be called between frames.
Auto Trait Implementations
impl Send for DummyDevice
impl Send for DummyDeviceimpl Sync for DummyDevice
impl Sync for DummyDevice