Skip to content

LiteFX::Rendering::Backends::DirectX12GraphicsFactory::createTextures

Creates a series of textures.

Synopses

Declared in <litefx/backends/dx12.hpp>

Creates a series of textures.

[[dllimport]] virtual Generator<SharedPtr<IDirectX12Image>> createTextures(
    Format format,
    Size3d const& size,
    ImageDimensions dimension = ImageDimensions::DIM_2,
    UInt32 layers = 1,
    UInt32 levels = 1,
    MultiSamplingLevel samples = MultiSamplingLevel::x1,
    ResourceUsage usage = ResourceUsage::Default,
    AllocationBehavior allocationBehavior = AllocationBehavior::Default) const = 0;

» more...

Creates a series of textures.

[[dllimport, dllexport]] virtual Generator<SharedPtr<IDirectX12Image>> createTextures(
    Format format,
    Size3d const& size,
    ImageDimensions dimension = ImageDimensions::DIM_2,
    UInt32 levels = 1,
    UInt32 layers = 1,
    MultiSamplingLevel samples = MultiSamplingLevel::x1,
    ResourceUsage usage = ResourceUsage::Default,
    AllocationBehavior allocationBehavior = AllocationBehavior::Default) const override;

» more...

Return Value

A generator for texture instances.

Parameters

NameDescription
formatThe format of the texture images.
sizeThe dimensions of the textures.
layersThe number of layers (slices) in this texture.
levelsThe number of mip map levels of the textures.
samplesThe number of samples, the textures should be sampled with.
usageThe intended usage for the buffer.
allocationBehaviorThe behavior controlling what happens if currently there is not enough memory available for the resource.

See Also

createTexture