mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2025-02-19 18:42:31 +00:00
Add a small TODO
This commit is contained in:
parent
35bddd3ca7
commit
896638b314
@ -60,6 +60,7 @@ pub unsafe trait CommandBuffer: DeviceOwned {
|
||||
/// the given queue, and if so locks it.
|
||||
///
|
||||
/// If you call this function, then you should call `unlock` afterwards.
|
||||
// TODO: require `&mut self` instead, but this has some consequences on other parts of the lib
|
||||
fn lock_submit(&self, future: &GpuFuture, queue: &Queue)
|
||||
-> Result<(), CommandBufferExecError>;
|
||||
|
||||
@ -68,6 +69,7 @@ pub unsafe trait CommandBuffer: DeviceOwned {
|
||||
/// # Safety
|
||||
///
|
||||
/// Must not be called if you haven't called `lock_submit` before.
|
||||
// TODO: require `&mut self` instead, but this has some consequences on other parts of the lib
|
||||
unsafe fn unlock(&self);
|
||||
|
||||
/// Executes this command buffer on a queue.
|
||||
|
Loading…
Reference in New Issue
Block a user