Struct vulkano::image::immutable::ImmutableImage [] [src]

pub struct ImmutableImage<F, A = PotentialDedicatedAllocation<StdMemoryPoolAlloc>> { /* fields omitted */ }

Image whose purpose is to be used for read-only purposes. You can write to the image once, but then you must only ever read from it.

Methods

impl<F> ImmutableImage<F>
[src]

[src]

Deprecated

: use ImmutableImage::uninitialized instead

[src]

Deprecated

: use ImmutableImage::uninitialized instead

[src]

Builds an uninitialized immutable image.

Returns two things: the image, and a special access that should be used for the initial upload to the image.

[src]

Construct an ImmutableImage from the contents of iter.

TODO: Support mipmaps

[src]

Construct an ImmutableImage containing a copy of the data in source.

TODO: Support mipmaps

impl<F, A> ImmutableImage<F, A>
[src]

[src]

Returns the dimensions of the image.

[src]

Returns the number of mipmap levels of the image.

Trait Implementations

impl<F: Debug, A: Debug> Debug for ImmutableImage<F, A>
[src]

[src]

Formats the value using the given formatter.

impl<F, A> ImageAccess for ImmutableImage<F, A> where
    F: 'static + Send + Sync
[src]

[src]

Returns the inner unsafe image object used by this image.

[src]

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

[src]

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

[src]

Returns a key that uniquely identifies the range given by first_layer/num_layers/first_mipmap/num_mipmaps. Read more

[src]

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

[src]

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

[src]

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

[src]

Returns the format of this image.

[src]

Returns true if the image is a color image.

[src]

Returns true if the image has a depth component. In other words, if it is a depth or a depth-stencil format. Read more

[src]

Returns true if the image has a stencil component. In other words, if it is a stencil or a depth-stencil format. Read more

[src]

Returns the number of mipmap levels of this image.

[src]

Returns the number of samples of this image.

[src]

Returns the dimensions of the image.

[src]

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

[src]

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

[src]

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

[src]

Returns true if an access to self (as defined by self_first_layer, self_num_layers, self_first_mipmap and self_num_mipmaps) potentially overlaps the same memory as an access to other (as defined by other_offset and other_size). Read more

[src]

Returns true if an access to self (as defined by self_first_layer, self_num_layers, self_first_mipmap and self_num_mipmaps) potentially overlaps the same memory as an access to other (as defined by other_first_layer, other_num_layers, other_first_mipmap and other_num_mipmaps). Read more

[src]

Shortcut for conflicts_buffer that compares the whole buffer to another.

[src]

Shortcut for conflicts_image that compares the whole buffer to a whole image.

[src]

Shortcut for conflict_key that grabs the key of the whole buffer.

impl<P, F, A> ImageContent<P> for ImmutableImage<F, A> where
    F: 'static + Send + Sync
[src]

[src]

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

impl<F: 'static, A> ImageViewAccess for ImmutableImage<F, A> where
    F: 'static + Send + Sync
[src]

[src]

[src]

Returns the dimensions of the image view.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

[src]

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