Cargo Features

[dependencies]
luminance-front = { version = "0.6.1", default-features = false, features = ["autoselect", "gl33", "gl33-GL_ARB_gpu_shader_fp64", "webgl2"] }
default = autoselect

The autoselect feature is set by default whenever luminance-front is added without default-features = false somewhere in the dependency tree.

autoselect default = gl33, webgl2

automatically pick the right backend depending on the compilation target

gl33 autoselect = luminance-gl

OpenGL 3.3 backend

Affects luminance-front::Backend

gl33-GL_ARB_gpu_shader_fp64

64-bit support

Enables GL_ARB_gpu_shader_fp64 of luminance-gl

webgl2 autoselect = luminance-webgl

WebGL2 backend

Affects luminance-front::Backend

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

luminance-webgl wasm webgl2?
luminance-gl not wasm gl33? gl33-GL_ARB_gpu_shader_fp64?