UNPKG

typegpu

Version:

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

10 lines (9 loc) 369 B
import { dualImpl } from "../core/function/dualImpl.js"; import { Void } from "../data/wgslTypes.js"; export const discard = dualImpl({ name: 'discard', normalImpl: '`discard` relies on GPU resources and cannot be executed outside of a draw call', signature: { argTypes: [], returnType: Void }, codegenImpl: () => 'discard;', sideEffects: true, });