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. | |
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.
| ArenaId donner::gpu::shader::wgsl::FoldedConstant::expression = kInvalidArenaId |
Literal, or vector construction of f32 literals.
| SourceSpan donner::gpu::shader::wgsl::FoldedConstant::span |
Authored source of the expression, brackets balanced.