Skip to content

ludus::graphics::rhi::TextureUpload

Ludus Wiki · API overview · Browse API

Struct

Borrowed complete original-format chain, consumed/copied before return. Mips are concatenated in ascending order; each contains all layers/faces or volume slices in ascending order. A slice has RowPitch * block-row-count bytes. Compressed pitches count encoded block bytes, with rounded-up edge blocks.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/raster.h

#include <ludus/graphics/rhi/raster.h>
struct ludus::graphics::rhi::TextureUpload final

Fields

Bytes

std::span<const ludus::foundation::uint8> ludus::graphics::rhi::TextureUpload::Bytes
Rows in top-left image order, including optional padding between rows.

Related types: ludus::foundation::uint8

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/raster.h

RowPitch

ludus::foundation::usize ludus::graphics::rhi::TextureUpload::RowPitch = 0
Encoded row/block-row pitch, at least ceil(Width/blockWidth) * blockBytes. Must be a multiple of four and of the format block byte count (eight for HDR/BC1, sixteen for BC3/BC5).

Related types: ludus::foundation::usize

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/raster.h

Mips

std::span<const TextureMipUpload> ludus::graphics::rhi::TextureUpload::Mips {}
Empty selects the legacy single-mip RowPitch. Otherwise exactly MipLevels descriptors; RowPitch must be zero. All metadata is consumed before return.

Related types: TextureMipUpload

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/raster.h