Skip to content

LiteFX::Rendering::IGraphicsDevice::supportsTexelBufferFormat

Returns true, if format can be used in texel buffers, i.e., as Buffer<T>, or as RWBuffer<T> if writable is set.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] virtual bool supportsTexelBufferFormat(
    Format format,
    bool writable) const = 0;

Description

This method is called when binding texel buffers to check at runtime, if a buffer's format is supported with the requested descriptor.

Return Value

true if the format is supported and false otherwise.

Parameters

NameDescription
formatThe format to check.
writabletrue if the format should be writable and false otherwise.