Documentation ¶
Index ¶
- Variables
- func RegisterResourceType(name string, fn ResourceBuildFunc)
- func ResolvePath(pwd, path string) (string, error)
- type GenTexFunc
- type Mapping
- type Resource
- type ResourceBuildFunc
- type ShaderToy
- func (st *ShaderToy) Close() error
- func (st ShaderToy) PreRender(state renderer.RenderState)
- func (st *ShaderToy) Setup(state renderer.RenderState) error
- func (st ShaderToy) Sources() (map[renderer.Stage][]renderer.Source, error)
- func (st ShaderToy) SubEnvironments() (map[string]renderer.SubEnvironment, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
IchannelNumRe = regexp.MustCompile(`^iChannel(\d+)$`)
)
Functions ¶
func RegisterResourceType ¶
func RegisterResourceType(name string, fn ResourceBuildFunc)
func ResolvePath ¶
Types ¶
type GenTexFunc ¶
type GenTexFunc func() uint32
type Mapping ¶
A Mapping is a parsed representation of a "map <name>=<namespace>:<value>" directive.
func ParseMapping ¶
type Resource ¶
type Resource interface { UniformSource() string PreRender(state renderer.RenderState) Close() error }
type ResourceBuildFunc ¶
type ResourceBuildFunc func(Mapping, GenTexFunc, renderer.RenderState) (Resource, error)
type ShaderToy ¶
type ShaderToy struct {
// contains filtered or unexported fields
}
ShaderToy implements a shader environment similar to the one on shadertoy.com.
func NewShaderToy ¶
func (ShaderToy) PreRender ¶
func (st ShaderToy) PreRender(state renderer.RenderState)
func (ShaderToy) SubEnvironments ¶
func (st ShaderToy) SubEnvironments() (map[string]renderer.SubEnvironment, error)
Click to show internal directories.
Click to hide internal directories.