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

x/glsl_variables/parser.ts>GLSLVariable

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

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

This is a recursive interface. It is being used in its declaration as the block array type.

Properties

qualifier: Qualifier | "struct"
type: GLSLType | "block" | "struct"
name: string
amount: number
isInvariant: boolean
isCentroid: boolean
layout: string | null
precision: GLSLPrecision | null
block: GLSLVariable[] | null
structName: string | null