shader

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Common

func Common() fs.FS

Common returns a filesystem containing common shaders.

func Game

func Game() fs.FS

Game returns a filesystem containing game shaders.

func UI

func UI() fs.FS

UI returns a filesystem containing UI shaders.

Types

type ConstructFunc

type ConstructFunc func(name string, data any) string

ConstructFunc creates a shader from a template with the given name and data.

func Load

func Load(sources ...fs.FS) ConstructFunc

Load loads all shaders from the given filesystems and returns a ConstructFunc that can be used to construct shaders from the loaded templates.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL