mirror of
https://github.com/vlang/v.git
synced 2025-09-10 16:00:31 -04:00
docs: fix old links in the v shader
section, to their current equivalents on the master
branch
This commit is contained in:
parent
bc3fc1218b
commit
4236baf56a
@ -5469,7 +5469,7 @@ To disable formatting for a block of code, wrap it with `// vfmt off` and
|
|||||||
### v shader
|
### v shader
|
||||||
|
|
||||||
You can use GPU shaders with V graphical apps. You write your shaders in an
|
You can use GPU shaders with V graphical apps. You write your shaders in an
|
||||||
[annotated GLSL dialect](https://github.com/vlang/v/blob/1d8ece7/examples/sokol/02_cubes_glsl/cube_glsl.glsl)
|
[annotated GLSL dialect](https://github.com/vlang/v/blob/master/examples/sokol/02_cubes_glsl/cube_glsl.glsl)
|
||||||
and use `v shader` to compile them for all supported target platforms.
|
and use `v shader` to compile them for all supported target platforms.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@ -5477,7 +5477,7 @@ v shader /path/to/project/dir/or/file.v
|
|||||||
```
|
```
|
||||||
|
|
||||||
Currently you need to
|
Currently you need to
|
||||||
[include a header and declare a glue function](https://github.com/vlang/v/blob/c14c324/examples/sokol/02_cubes_glsl/cube_glsl.v#L43-L46)
|
[include a header and declare a glue function](https://github.com/vlang/v/blob/master/examples/sokol/02_cubes_glsl/cube_glsl.v#L25-L28)
|
||||||
before using the shader in your code.
|
before using the shader in your code.
|
||||||
|
|
||||||
### Profiling
|
### Profiling
|
||||||
|
Loading…
x
Reference in New Issue
Block a user