Skip to content

LiteFX::Rendering::IImage::size

size overloads

Synopses

Declared in <litefx/rendering_api.hpp>

Gets the size (in bytes) of the aligned memory chunk.

[[dllimport, dllexport]] virtual size_t size() const noexcept = 0;

» more...

Returns the size (in bytes) of an image at a specified mip map level. If the image does not contain the provided mip map level, the method returns 0.

[[dllimport, dllexport]] virtual size_t size(UInt32 level) const = 0;

» more...

Return Value

  • The size (in bytes) of the memory chunk.
  • The size (in bytes) of an image at a specified mip map level.

Parameters

NameDescription
levelThe mip map level to return the size for.

See Also

elements

elementSize

elementAlignment

alignedElementSize