Struct Image

Inheritance Relationships

Derived Type

Struct Documentation

struct Image

Immutable uploaded contents/dimensions in the selected backend domain.

Subclassed by CE::Rendering::OpenGL::Texture

Public Functions

virtual ~Image() = default

Release this logical image owner.

Native retirement/deletion follows the backend contract; destroying a handle does not promise immediate native deletion.

virtual CE::Rendering::Geometry::PixelSize pixel_size() const = 0

Declaration: [[nodiscard]]

Read uploaded dimensions in pixels without selecting a texture unit.

Returns:

Immutable image width and height. Retain this image through the call; concrete adapters define their synchronization requirements.

virtual void bind(std::uint32_t unit) const = 0

Bind the image for a draw on its live backend owner/current context.

Parameters:

unit – Zero-based texture-unit request, within the backend limit. Retain the image and its original resource domain through native use. Backend validation/errors may throw; this operation does not choose a material or draw geometry.