diff options
| author | Tobin Ehlis <tobine@google.com> | 2015-12-01 09:48:58 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2015-12-07 14:36:49 -0700 |
| commit | faf9dac98d1d8f0e83b045cce23937619da8ae0a (patch) | |
| tree | 14fe4aa25e1e797f284dfc00e02efb6353abec6e /vk_layer_documentation_generate.py | |
| parent | b00af418b6f7c7a811e8c73bdc5b2cccb84bcba3 (diff) | |
| download | usermoji-faf9dac98d1d8f0e83b045cce23937619da8ae0a.tar.xz | |
layers: MR75, Merge DrawState and ShaderChecker into DrawState layer
This is the initial "dumb" merge where a few data structures are now duplicated
within DrawState. This is intentional to simplify the transition and a follow-on
commit will fix these inefficiencies.
Conflicts:
layers/draw_state.cpp
Diffstat (limited to 'vk_layer_documentation_generate.py')
| -rwxr-xr-x | vk_layer_documentation_generate.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vk_layer_documentation_generate.py b/vk_layer_documentation_generate.py index 497edc34..ccc0a8d8 100755 --- a/vk_layer_documentation_generate.py +++ b/vk_layer_documentation_generate.py @@ -61,8 +61,8 @@ layer_inputs = { 'draw_state' : {'header' : 'layers/draw_state.h', 'source' : 'layers/mem_tracker.cpp', 'generated' : False, 'error_enum' : 'MEM_TRACK_ERROR'}, - 'shader_checker' : {'header' : 'layers/shader_checker.h', - 'source' : 'layers/shader_checker.cpp', + 'shader_checker' : {'header' : 'layers/draw_state.h', + 'source' : 'layers/draw_state.cpp', 'generated' : False, 'error_enum' : 'SHADER_CHECKER_ERROR'}, 'threading' : {'header' : 'layers/threading.h', @@ -137,8 +137,8 @@ class LayerParser: # For each header file, parse details into dicts # TODO : Should have a global dict element to track overall list of checks store_enum = False - for hf in self.header_files: - layer_name = os.path.basename(hf).split('.')[0] + for layer_name in layer_inputs: + hf = layer_inputs[layer_name]['header'] self.layer_dict[layer_name] = {} # initialize a new dict for this layer self.layer_dict[layer_name]['CHECKS'] = [] # enum of checks is stored in a list #print('Parsing header file %s as layer name %s' % (hf, layer_name)) |
