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]

Deprecated

: use ImmutableImage::uninitialized instead

Deprecated

: use ImmutableImage::uninitialized instead

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.

Construct an ImmutableImage from the contents of iter.

TODO: Support mipmaps

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

TODO: Support mipmaps

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

Returns the dimensions of the image.

Returns the number of mipmap levels of the image.

Trait Implementations

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

Formats the value using the given formatter. Read more

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

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 true if an access to self potentially overlaps the same memory as an access to other. Read more

Returns true if an access to self potentially overlaps the same memory as an access to other. Read more

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 true if the image is a color image.

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

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

Returns the number of mipmap levels 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.

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

impl<P, F, A> ImageContent<P> for ImmutableImage<F, A> where
    F: 'static + Send + Sync
[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]

Returns the dimensions of the image view.

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

Auto Trait Implementations

impl<F, A> Send for ImmutableImage<F, A> where
    A: Send,
    F: Send

impl<F, A> Sync for ImmutableImage<F, A> where
    A: Sync,
    F: Sync