3 releases (breaking)

0.3.0 Dec 21, 2023
0.2.0 Nov 7, 2023
0.1.0 Sep 25, 2023

#73 in Rendering engine

Download history 7/week @ 2024-02-19 36/week @ 2024-02-26 45/week @ 2024-04-01 55/week @ 2024-04-15

100 downloads per month
Used in vera-core

GPL-3.0-only

24KB
347 lines

Vera

Defines the Code User Interface sent to the Vera Core via its Input struct.

It is defined independently of vulkano, for faster hot-reload. It is not used directly for the graphics pipeline (e.g. vertex/uniform input), but contains everything for the Vera core to create/animate the shapes once sent.


lib.rs:

Crate root.

Contains modifyable global variables (inside unsafe blocks) to choose Default behaviours. These variables start with D_.

Everything further in this crate is reexported to this level.

Don't

DO NOT modify/read these global variables simutaneously on different threads.
Most likely, don't bother creating several threads at all. The Vera core crate will do the performance job. In case you really want multithreading: some function modify/read these variables, but aren't unsafe to simplify scripting. Check the docs of the functions you use to know which ones you should be careful with.

Dependencies

~28KB