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

x/glsl_variables/parser.ts>SamplerGLSLVariable

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

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

Properties

qualifier: "uniform"
type:
| "sampler2D"
| "sampler3D"
| "samplerCube"
| "samplerCubeShadow"
| "sampler2DShadow"
| "sampler2DArray"
| "sampler2DArrayShadow"
| "isampler2D"
| "isampler3D"
| "isamplerCube"
| "isampler2DArray"
| "usampler2D"
| "usampler3D"
| "usamplerCube"
| "usampler2DArray"