mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
tint: Stub intrinsic @const evaluation
Add support for @const to builtins in intrinsics.def. Propagate this flag through to the intrinsic table. Handle builtins that are @const annotated in the resolver. Currently no intrinsics are decorated with @const, so there's nothing to test (yet). Bug: tint:1504 Change-Id: I172483688617782bd7c58b70e3f38d0222a5d1af Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92323 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
e0cd855aa2
commit
451eee0fed
@@ -143,15 +143,16 @@ type Intrinsic struct {
|
||||
|
||||
// Overload describes a single overload of a builtin or operator
|
||||
type Overload struct {
|
||||
Decl ast.IntrinsicDecl
|
||||
Intrinsic *Intrinsic
|
||||
TemplateParams []TemplateParam
|
||||
TemplateTypes []*TemplateTypeParam
|
||||
TemplateNumbers []TemplateParam
|
||||
ReturnType *FullyQualifiedName
|
||||
Parameters []Parameter
|
||||
CanBeUsedInStage StageUses
|
||||
IsDeprecated bool // True if this overload is deprecated
|
||||
Decl ast.IntrinsicDecl
|
||||
Intrinsic *Intrinsic
|
||||
TemplateParams []TemplateParam
|
||||
TemplateTypes []*TemplateTypeParam
|
||||
TemplateNumbers []TemplateParam
|
||||
ReturnType *FullyQualifiedName
|
||||
Parameters []Parameter
|
||||
CanBeUsedInStage StageUses
|
||||
IsDeprecated bool // True if this overload is deprecated
|
||||
ConstEvalFunction string // Name of the function used to evaluate the intrinsic at shader creation time
|
||||
}
|
||||
|
||||
// StageUses describes the stages an overload can be used in
|
||||
|
||||
Reference in New Issue
Block a user