mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
docs: add v shader
section, add help text (#12594)
This commit is contained in:
@ -90,7 +90,7 @@ fn main() {
|
||||
show_help: fp.bool('help', `h`, false, 'Show this help text.')
|
||||
force_update: fp.bool('force-update', `u`, false, 'Force update of the sokol-shdc tool.')
|
||||
verbose: fp.bool('verbose', `v`, false, 'Be verbose about the tools progress.')
|
||||
slangs: fp.string_multi('slang', `l`, 'Shader dialects to generate code for. Default is all. Available: $supported_slangs')
|
||||
slangs: fp.string_multi('slang', `l`, 'Shader dialects to generate code for. Default is all.\n Available dialects: $supported_slangs')
|
||||
}
|
||||
if opt.show_help {
|
||||
println(fp.usage())
|
||||
|
17
cmd/v/help/shader.txt
Normal file
17
cmd/v/help/shader.txt
Normal file
@ -0,0 +1,17 @@
|
||||
Usage:
|
||||
v shader [options] [DIRECTORY / FILE]
|
||||
|
||||
Examples:
|
||||
v shader .
|
||||
v shader examples/sokol/02_cubes_glsl/cube_glsl.glsl
|
||||
|
||||
Compile shaders in sokol's annotated GLSL format to C headers for use with sokol based apps.
|
||||
Sokol based apps include all apps using V's gg module.
|
||||
|
||||
Options:
|
||||
-h, --help Show this help text.
|
||||
-v, --verbose Be verbose about the tools progress.
|
||||
-u, --force-update Force update of the sokol-shdc tool.
|
||||
-l, --slang <multiple strings> Shader dialects to generate code for. Default is all.
|
||||
Available: 'glsl330', 'glsl100', 'glsl300es', 'hlsl4', 'hlsl5', 'metal_macos', 'metal_ios', 'metal_sim', 'wgpu'
|
||||
|
Reference in New Issue
Block a user