Graphics functions and constants.
Version: alpha
| FUNCTIONS | |
|---|---|
| graphics.get_adapter_info() | get information about the currently installed graphics adapter |
| graphics.get_engine_adapters() | get the list of graphics adapters that have been registered with the engine |
graphics.get_adapter_info()
Returns a table describing the active graphics context: the adapter family, its hardware limits, the list of driver-reported extensions, and the set of optional context features supported by the backend.
PARAMETERS
None
RETURNS
info |
table |
table with the following fields:
family string adapter family name (e.g. "opengl", "vulkan")
version_major number adapter API major version (e.g. 1 for Vulkan 1.4)
version_minor number adapter API minor version (e.g. 4 for Vulkan 1.4)
limits table hardware/driver limits:
extensions table array of driver-reported extension name strings
features table array of supported context feature ids:
|
graphics.get_engine_adapters()
get the list of graphics adapters that have been registered with the engine
PARAMETERS
None
RETURNS
adapters |
table |
array of adapter family name strings (e.g. "opengl", "vulkan", "webgpu") |
Context feature flag indicating support for 3D (volume) textures.
Context feature flag indicating support for ASTC compressed 2D array textures. Some WebGL/GLES drivers fail array texture ASTC uploads while 2D ASTC works.
Context feature flag indicating support for min/max blend equations. Requires GLES3+ or EXT_blend_minmax.
Context feature flag indicating support for compute shaders.
Context feature flag indicating support for hardware instancing.
Context feature flag indicating support for rendering to multiple color targets simultaneously.
Context feature flag indicating support for storage buffers.