Skip to content

ludus::graphics::rhi::TextureViewDescription

Ludus Wiki · API overview · Browse API

Struct

Immutable original-format sampled aspect or single-subresource writable attachment view. Mip zero in a shader denotes BaseMip. Zero counts select the remaining allocation range. D3 requires BaseLayer=0, LayerCount=0 or 1; its volume slices are not array layers. No format reinterpretation.

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

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

Fields

Dimension

TextureDimension ludus::graphics::rhi::TextureViewDescription::Dimension = TextureDimension::D2
Shader-visible dimension; must match the allocation, except a single array/cube layer may use D2.

Related types: TextureDimension

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

BaseMip

ludus::foundation::uint32 ludus::graphics::rhi::TextureViewDescription::BaseMip = 0
First allocated mip exposed to sampling.

Related types: ludus::foundation::uint32

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

MipCount

ludus::foundation::uint32 ludus::graphics::rhi::TextureViewDescription::MipCount = 0
Number of exposed mips; zero selects all remaining levels.

Related types: ludus::foundation::uint32

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

BaseLayer

ludus::foundation::uint32 ludus::graphics::rhi::TextureViewDescription::BaseLayer = 0
First exposed array layer or cube face.

Related types: ludus::foundation::uint32

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

LayerCount

ludus::foundation::uint32 ludus::graphics::rhi::TextureViewDescription::LayerCount = 0
Number of exposed layers; zero selects all remaining layers.

Related types: ludus::foundation::uint32

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

Aspect

TextureAspect ludus::graphics::rhi::TextureViewDescription::Aspect = TextureAspect::Color
Original color or private depth/stencil aspect; depth/stencil require a D2 view.

Related types: TextureAspect

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

Attachment

bool ludus::graphics::rhi::TextureViewDescription::Attachment = false
Select a writable attachment view rather than a shader binding. Color only, exactly one mip/layer and D2; retains both color and its private depth/stencil. Undefined contents are legal until a pass clears them. Not bindable in a set.

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