Struct vulkano::image::swapchain::SwapchainImage [] [src]

pub struct SwapchainImage { /* fields omitted */ }

An image that is part of a swapchain.

Creating a SwapchainImage is automatically done when creating a swapchain.

A swapchain image is special in the sense that it can only be used after being acquired by calling the acquire method on the swapchain. You have no way to know in advance which swapchain image is going to be acquired, so you should keep all of them alive.

After a swapchain image has been acquired, you are free to perform all the usual operations on it. When you are done you can then present the image (by calling the corresponding method on the swapchain), which will have the effect of showing the content of the image to the screen. Once an image has been presented, it can no longer be used unless it is acquired again.

Methods

impl SwapchainImage
[src]

Builds a SwapchainImage from raw components.

This is an internal method that you shouldn't call.

Returns the dimensions of the image.

A SwapchainImage is always two-dimensional.

Returns the format of the image.

Returns the swapchain this image belongs to.

Trait Implementations

impl Image for SwapchainImage
[src]

Returns the inner unsafe image object used by this image.

Given a range, returns the list of blocks which each range is contained in. Read more

Called when a command buffer that uses this image is being built. Given a block, this function should return the layout that the block will have when the command buffer is submitted. Read more

Called when a command buffer that uses this image is being built. Given a block, this function should return the layout that the block must have when the command buffer is end. Read more

Returns whether accessing a subresource of that image should signal a fence.

Returns the format of this image.

Returns the number of samples of this image.

Returns the dimensions of the image.

Returns true if the image can be used as a source for blits.

Returns true if the image can be used as a destination for blits.

impl ImageClearValue<<Format as FormatDesc>::ClearValue> for SwapchainImage
[src]

impl<P> ImageContent<P> for SwapchainImage
[src]

Checks whether pixels of type P match the format of the image.

impl ImageView for SwapchainImage
[src]

Returns the dimensions of the image view.

Returns the blocks of the parent image this image view overlaps.

Returns the inner unsafe image view object used by this image view.

Returns the image layout to use in a descriptor with the given subresource.

Returns the image layout to use in a descriptor with the given subresource.

Returns the image layout to use in a descriptor with the given subresource.

Returns the image layout to use in a descriptor with the given subresource.

Returns true if the view doesn't use components swizzling. Read more

Returns the format of this view. This can be different from the parent's format.

Returns true if the given sampler can be used with this image view. Read more

impl TrackedImage for SwapchainImage
[src]

State of the image in a list of commands. Read more

State of the buffer in a finished list of commands.

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

Returns true if TODO. Read more

Returns true if TODO. Read more