Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/shader_canvas/core/common/src_readers.ts>trySrcReaders

A rendering engine where you can write WebGL 2.0 shaders using custom tags.
Latest
function trySrcReaders
import { trySrcReaders } from "https://deno.land/x/shader_canvas@v1.1.1/core/common/src_readers.ts";

For a given src string, it tries a set of data readers for it. This allows a src string to support multiple target representations.

An example of a reader is, for instance, the JSON parser.

Parameters

src: string
readers: SrcReader<T>[]