-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
30 lines (22 loc) · 944 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2022, The Goki Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// copied from go src/cmd/gofmt/doc.go:
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/*
gosl translates Go source code into HLSL compatible shader code.
use //gosl: start <filename> and //gosl: end <filename> to
bracket code that should be copied into shaders/<filename>.hlsl
use //gosl: main <filename> instead of start for shader code that is
commented out in the .go file, which will be copied into the filename
and uncommented.
pass filenames or directory names for files to process.
Usage:
gosl [flags] [path ...]
The flags are:
-out string
output directory for shader code, relative to where gosl is invoked (default "shaders")
*/
package main