Skip to content

Commit ea29e90

Browse files
committed
Codegen of vkjson
The vkjson_generate.py script generates vkjson files from data in vkjson_constants.py. While ideally vk.xml would serve as the source (a future improvement), deriving vkjson_constants.py from vk.xml is a separate task. To maintain concise CLs, this derivation will be addressed in a separate CL. Adding symbols (features, properties, extensions, limits) to vkjson is now straightforward. Simply define their dependencies within vkjson_constants.py, and the script will automatically update vkjson.h, vkjson.cc, and vkjson_instance.cc accordingly. Test: adb shell cmd gpu vkjson Flag: NONE infeasible Bug: b/401180969 Change-Id: I3652e80c465145e86cc4c25f79523a6dc2111d18
1 parent b0f3016 commit ea29e90

File tree

3 files changed

+2854
-0
lines changed

3 files changed

+2854
-0
lines changed

vulkan/scripts/code_generator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import driver_generator
2222
import generator_common
2323
import null_generator
24+
import vkjson_generator
2425

2526
if __name__ == '__main__':
2627
generator_common.parse_vulkan_registry()
@@ -30,3 +31,6 @@
3031
driver_generator.gen_cpp()
3132
null_generator.gen_h()
3233
null_generator.gen_cpp()
34+
vkjson_generator.gen_h()
35+
vkjson_generator.gen_cc()
36+
vkjson_generator.gen_instance_cc()

0 commit comments

Comments
 (0)