Home -> IGraphicsDevice -> IsTextureFormatSupported

Description

The IsTextureFormatSupported method returns true if the specified image and data format combination is supported for texture allocation.

Usage

bool IsTextureFormatSupported(ITextureBuffer::ImageFormat imageFormat, ITextureBuffer::DataFormat dataFormat) const;

Argument list

imageFormat [ITextureBuffer::ImageFormat]
The texture image format to test.
dataFormat [ITextureBuffer::DataFormat]
The texture data format to test in combination with the image format.

Return value

[bool]
True if the device supports the specified texture format combination, false otherwise.

See also