UNPKG

typegpu

Version:

A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.

14 lines (13 loc) 383 B
import { UnknownData } from "../../data/dataTypes.js"; import { snip } from "../../data/snippet.js"; import { $internal, $resolve } from "../../shared/symbols.js"; export class ResolvableString { [$internal] = true; #value; constructor(value) { this.#value = value; } [$resolve]() { return snip(this.#value, UnknownData, 'runtime', true); } }