mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 01:15:39 +00:00
tint/ast: Generate ast::TexelFormat from intrinsics.def
Emit unit tests for parsing and printing. Emit benchmarks for parsing. Uses intrinsics.def as a single-source-of-truth. The generators provide a way to optimize the enum parsers. Change-Id: I603c2a1bd238eb8d059f3d13238e5e48379de6af Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/97202 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
fe8e6ee682
commit
08659d098d
@@ -104,7 +104,7 @@ ResourceBinding::TexelFormat TypeTexelFormatToResourceBindingTexelFormat(
|
||||
return ResourceBinding::TexelFormat::kRgba32Sint;
|
||||
case ast::TexelFormat::kRgba32Float:
|
||||
return ResourceBinding::TexelFormat::kRgba32Float;
|
||||
case ast::TexelFormat::kNone:
|
||||
case ast::TexelFormat::kInvalid:
|
||||
return ResourceBinding::TexelFormat::kNone;
|
||||
}
|
||||
return ResourceBinding::TexelFormat::kNone;
|
||||
|
||||
Reference in New Issue
Block a user