MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / gpuNaN

Function gpuNaN

src/compute-engine/compilation/gpu-target.ts:347–351  ·  view source on GitHub ↗

* Emit a NaN literal valid for the target shader language. * * Neither GLSL nor WGSL has a `NaN` identifier (the base compiler's default * `If`/`Which`/`When` emit a bare `NaN`, which fails to compile on GPU). GLSL * evaluates `0.0 / 0.0` to NaN at runtime; WGSL rejects a constant `0.0 / 0.0` *

(target?: CompileTarget<Expression>)

Source from the content-addressed store, hash-verified

345 'set',
346 'shared',
347 'static',
348 'super',
349 'template',
350 'this',
351 'typedef',
352 'union',
353 'unless',
354 'using',

Callers 2

gpu-target.tsFile · 0.85
buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected