Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/glsl_variables/parser.ts

Read a GLSL string and return a parsed list of its variables. Only supports WebGL 2.0.
Latest
import * as glslVariables from "https://deno.land/x/glsl_variables@v1.0.2/parser.ts";

Functions

This function returns true if a GLSLVariable is not an "out" variable.

This function returns true if a GLSLVariable is set as an "out" variable.

This function returns true if a GLSLVariable is a sampler* type variable.

This function returns the list of parsed input/output variables in a shader code string.

Interfaces

The type of a GLSL variable that is successfully parsed. It has the most common attributes that a variable can have in GLSL.

A subset of the GLSLVariable that only allows the strings "uniform" and "in" as qualifiers

A subset of the GLSLVariable that only allows the string "out" as a qualifier

A subset of the GLSLVariable that only allows sampler* type variables. Useful to get the textures among the variables.