mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
Add default values to dawn.json for dawncpp.h
This adds almost all default values in descriptors that are present in WebGPU to the C++ interface for Dawn. This also fixes the indentation of dawncpp.h both by reindenting the template, and making the indentation counting in generator_lib.py more precise. BUG=dawn:22 Change-Id: I9a852d26f78a3349f3d6eee7237407d1cf8ca426 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/8680 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
6be313225e
commit
8f93871dff
@@ -103,8 +103,8 @@ class _PreprocessingLoader(jinja2.BaseLoader):
|
||||
source = self.preprocess(f.read())
|
||||
return source, path, lambda: mtime == os.path.getmtime(path)
|
||||
|
||||
blockstart = re.compile('{%-?\s*(if|for|block)[^}]*%}')
|
||||
blockend = re.compile('{%-?\s*end(if|for|block)[^}]*%}')
|
||||
blockstart = re.compile('{%-?\s*(if|elif|else|for|block|macro)[^}]*%}')
|
||||
blockend = re.compile('{%-?\s*(end(if|for|block|macro)|elif|else)[^}]*%}')
|
||||
|
||||
def preprocess(self, source):
|
||||
lines = source.split('\n')
|
||||
|
||||
Reference in New Issue
Block a user