Skip to content

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

Creates a series of textures.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[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;

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.
dimensionDescribes the dimensions of a image resource, i.e. the dimensions that are required to access a texel or describe the image extent.

See Also

createTexture