[][src]Crate isf

A crate for parsing the ISF aka Interactive Shader Format as described by the spec:

https://www.interactiveshaderformat.com/spec

Also provides deserialization and serialization of the Isf instance for ease of both consuming and generating ISF shaders.

The parse function can parse a given GLSL string to produce an Isf instance. The Isf type represents a fully structured representation of the format, including typed Inputs.

Structs

ImageImport

A described image import

Input

Describes an input to the ISF shader.

InputAudio
InputAudioFft
InputBool
InputLong
InputValues

Possible values stored for the type.

Isf

Representation of the JSON structure parsed from the top-level GLSL comment.

Pass

Describes a pass of an ISF shader.

Enums

InputType

Input types supported by ISF.

ParseError

Errors that might occur while parsing a GLSL string for an ISF blob.

Functions

parse

Attempt to parse an ISF blob from a GLSL source string.

Type Definitions

InputColor
InputFloat
InputPoint2d