cf_texture_supports_format¶
Category: graphics
GitHub: cute_graphics.h
Checks whether the device supports a pixel format under specific texture 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.