[go: up one dir, main page]

Trait gfx::traits::DeviceFence []

pub trait DeviceFence<R>: Device<Resources=R> where R: Resources, Self::CommandBuffer: CommandBuffer<R> {
    fn fenced_submit(&mut self,
                 &mut Self::CommandBuffer,
                 after: Option<Fence<R>>)
                 -> Fence<R>; fn fence_wait(&mut self, fence: &Fence<R>); }

Extension to the Device that allows for submitting of commands around a fence

Required Methods

Submit a command buffer to the stream creating a fence the fence is signaled after the GPU has executed all commands in the buffer

Wait on the supplied fence stalling the current thread until the fence is satisfied

Implementors