logo
pub struct SubImage { /* private fields */ }
Expand description

Image whose purpose is to access only a part of one image, for any kind of access We define a part of one image here by a level of mipmap, or a layer of an array The image attribute must be an implementation of ImageAccess The mip_levels_access must be a range showing which mipmaps will be accessed The array_layers_access must be a range showing which layers will be accessed The layout must be the layout of the image at the beginning and at the end of the command buffer

Implementations

Trait Implementations

Returns the inner unsafe image object used by this image.

Returns the layout that the image has when it is first used in a primary command buffer. Read more

Returns the layout that the image must be returned to before the end of the command buffer. Read more

Returns an ImageDescriptorLayouts structure specifying the image layout to use in descriptors of various kinds. Read more

Returns the current mip level that is accessed by the gpu

Returns the current array layer that is accessed by the gpu

Returns a key that uniquely identifies the memory content of the image. Two ranges that potentially overlap in memory must return the same key. Read more

Locks the resource for usage on the GPU. Returns an error if the lock can’t be acquired. Read more

Locks the resource for usage on the GPU. Supposes that the resource is already locked, and simply increases the lock by one. Read more

Unlocks the resource previously acquired with try_gpu_lock or increase_gpu_lock. Read more

Returns the format of this image.

Returns the number of mipmap levels of this image.

Returns the number of samples of this image.

Returns the dimensions of the image.

Returns the features supported by the image’s format.

When images are created their memory layout is initially Undefined or Preinitialized. This method allows the image memory barrier creation process to signal when an image has been transitioned out of its initial Undefined or Preinitialized state. This allows vulkano to avoid creating unnecessary image memory barriers between future uses of the image. Read more

Wraps around this ImageAccess and returns an identical ImageAccess but whose initial layout requirement is either Undefined or Preinitialized. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.