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>readSrcAsJSON

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

This function is a "reader". If the src string is a JSON array, then it returns a promise that resolves to the parsed contents.

Otherwise the src string is rejected.

Parameters

src: string

Returns

Promise<number[]>