Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::shader::wgsl::FoldedConstant Struct Reference

An outermost constant f32 or abstract-float expression the parser folded. The WGSL projection spells its value exactly in place of the authored source, so a browser receives the value the native projections carry rather than evaluating the expression with WGSL's looser accuracy. More...

#include "donner/gpu/shader/wgsl/Module.h"

Public Attributes

SourceSpan span
 Authored source of the expression, brackets balanced.
ArenaId expression = kInvalidArenaId
 Literal, or vector construction of f32 literals.

Detailed Description

An outermost constant f32 or abstract-float expression the parser folded. The WGSL projection spells its value exactly in place of the authored source, so a browser receives the value the native projections carry rather than evaluating the expression with WGSL's looser accuracy.

Member Data Documentation

◆ expression

ArenaId donner::gpu::shader::wgsl::FoldedConstant::expression = kInvalidArenaId

Literal, or vector construction of f32 literals.

◆ span

SourceSpan donner::gpu::shader::wgsl::FoldedConstant::span

Authored source of the expression, brackets balanced.


The documentation for this struct was generated from the following file: