mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 13:38:00 +00:00
Remove the "Base" from pure-frontend dawn_native types
This was unnecessary verbosity. Fix this by having the ProcTable generator using type aliases so all types appear like they have "Base". BUG= Change-Id: I8c472fb924f6ce739e4e41038452381b4f727a2b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/13442 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
9e7107eb96
commit
321c12255e
@@ -26,6 +26,14 @@
|
||||
|
||||
namespace dawn_native {
|
||||
|
||||
// Type aliases to make all frontend types appear as if they have "Base" at the end when some
|
||||
// of them are actually pure-frontend and don't have the Base.
|
||||
using CommandEncoderBase = CommandEncoder;
|
||||
using ComputePassEncoderBase = ComputePassEncoder;
|
||||
using FenceBase = Fence;
|
||||
using RenderPassEncoderBase = RenderPassEncoder;
|
||||
using RenderBundleEncoderBase = RenderBundleEncoder;
|
||||
|
||||
namespace {
|
||||
|
||||
{% for type in by_category["object"] %}
|
||||
|
||||
Reference in New Issue
Block a user