V has several built-in tools to simplify development.
You don't need to worry about formatting your code or setting style guidelines.
v fmt takes care of that:
v fmt -w file.v
v fmtwill overwrite the file with formatted code.
It's recommended to set up your editor, so that
v fmt -w runs on every save.
A vfmt run is usually pretty cheap (takes <30ms).
v fmt -w file.vbefore pushing your code.
To disable formatting for a block of code, wrap it with
// vfmt off and
// vfmt on comments:
You can use GPU shaders with V graphical apps. You write your shaders in an
annotated GLSL dialect
v shader to compile them for all supported target platforms.
v shader /path/to/project/dir/or/file.v
Currently, you need to include a header and declare a glue function before using the shader in your code.