Skip to content

LiteFX::Rendering::ResourceUsage

Describes the intended usage for a resource.

Synopsis

Declared in <litefx/rendering_api.hpp>

enum class ResourceUsage : int;

Members

NameDescription
None The resource is created without any special usage settings.
AllowWrite Allows the resource to be written to.
TransferSource Allows the resource data to be copied into another resource.
TransferDestination Allows the resource data to be copied from another resource.
RenderTarget Allows the resource to be used as a render target.
AccelerationStructureBuildInput Allows the resource to be used to build acceleration structures.
Default Shortcut for commonly used TransferSource | TransferDestination combination.
FrameBufferImage Default usage for frame buffer images.
Volatile Causes the contents of the resource to not be copied during defragmentation.

Non-Member Functions

NameDescription
operator&Bitwise conjunction operator
operator&=Bitwise conjunction assignment operator
operator|Bitwise disjunction operator
operator|=Bitwise disjunction assignment operator

See Also

IGraphicsFactory

IBuffer

IImage