Skip to content

cf_texture_supports_format

Category: graphics
GitHub: cute_graphics.h


Checks whether the device supports a pixel format under specific texture usage.

bool cf_texture_supports_format(CF_PixelFormat format, CF_TextureUsageBits usage);
Parameters Description
format The pixel format to check.
usage The intended CF_TextureUsageBits.

Remarks

The usage-precise sibling of cf_query_pixel_format -- e.g. probe CF_TEXTURE_USAGE_DEPTH_STENCIL_TARGET_BIT support for a depth format, the same check cf_canvas_defaults uses to negotiate its depth format.

CF_PixelFormat
CF_TextureUsageBits
cf_query_pixel_format