Trait vulkano::image::traits::TrackedImage [] [src]

pub unsafe trait TrackedImage: Image {
    type CommandListState: Any + CommandListState<FinishedState=Self::FinishedState>;
    type FinishedState: CommandBufferState;
    fn initial_state(&self) -> Self::CommandListState;

    fn is_same_buffer<B>(&self, other: &B) -> bool where B: Buffer { ... }
    fn is_same_image<I>(&self, other: &I) -> bool where I: Image { ... }
}

Extension trait for Image. Types that implement this can be used in a StdCommandBuffer.

Each buffer and image used in a StdCommandBuffer have an associated state which is represented by the CommandListState associated type of this trait. You can make multiple buffers or images share the same state by making is_same return true.

Associated Types

State of the image in a list of commands.

The Any bound is here for stupid reasons, sorry.

State of the buffer in a finished list of commands.

Required Methods

Returns the state of the image when it has not yet been used.

Provided Methods

Returns true if TODO.

If is_same returns true, then the type of CommandListState must be the same as for the other buffer. Otherwise a panic will occur.

Returns true if TODO.

If is_same returns true, then the type of CommandListState must be the same as for the other image. Otherwise a panic will occur.

Implementors