Cargo Features
[dependencies]
chuot = { version = "0.3.0", default-features = false, features = ["embed-assets", "read-texture"] }
- default = read-texture
-
The
read-texture
feature is set by default wheneverchuot
is added without
somewhere in the dependency tree.default-features = false - embed-assets
-
Process and embed all assets into the binary for producing an optimized single binary.
This is the only way to load "external" assets when building for the web.Enables imgref, embed-assets of chuot-macros
- read-texture default
-
Keep the texture data in memory so the pixel data can be retrieved.
If disabled some texture functionality is not available because all textures are uploaded to the GPU and then removed from memory.