LiteFX::Rendering::Backends::VulkanGraphicsFactory::createTextures¶
Creates a series of textures.
Synopsis¶
Declared in <litefx/rendering.hpp>
[[dllimport]] virtual Generator<SharedPtr<IVulkanImage>> 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;
Return Value¶
A generator for texture instances.
Parameters¶
| Name | Description |
|---|---|
| format | The format of the texture images. |
| size | The dimensions of the textures. |
| layers | The number of layers (slices) in this texture. |
| levels | The number of mip map levels of the textures. |
| samples | The number of samples, the textures should be sampled with. |
| usage | The intended usage for the buffer. |
| allocationBehavior | The behavior controlling what happens if currently there is not enough memory available for the resource. |
| dimension | Describes 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