pub struct GraphicsCommandBuffer { /* private fields */ }Expand description
A command buffer for the compute queue. Command buffer need to be reset using the parent pool.
Implementations§
Source§impl GraphicsCommandBuffer
impl GraphicsCommandBuffer
Sourcepub fn raw(&self) -> CommandBuffer
pub fn raw(&self) -> CommandBuffer
The raw Vulkan command buffer handle.
Sourcepub unsafe fn record(&self) -> Result<GraphicsCommandEncoder<'_>, AscheError>
pub unsafe fn record(&self) -> Result<GraphicsCommandEncoder<'_>, AscheError>
Begins to record the command buffer. Encoder will finish recording on drop.
Sourcepub fn set_semaphores(
&mut self,
wait_semaphores: &[CommandBufferSemaphore],
signal_semaphores: &[CommandBufferSemaphore],
)
pub fn set_semaphores( &mut self, wait_semaphores: &[CommandBufferSemaphore], signal_semaphores: &[CommandBufferSemaphore], )
Sets the wait and signal semaphores of the command buffer.
Trait Implementations§
Source§impl Debug for GraphicsCommandBuffer
impl Debug for GraphicsCommandBuffer
Auto Trait Implementations§
impl Freeze for GraphicsCommandBuffer
impl RefUnwindSafe for GraphicsCommandBuffer
impl Send for GraphicsCommandBuffer
impl Sync for GraphicsCommandBuffer
impl Unpin for GraphicsCommandBuffer
impl UnwindSafe for GraphicsCommandBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more