For each internal shader, there is now possibly a companion .json file that defines shader variations. The variations consist of a set of flags and a set of enums. Each enum defines a variation that takes one of a few values. Flags are shorthands for 2-value enums. In the shader code, #if can be used to change the shader based on variations derived from flags and enums. On the C++ side, those variations are combined into an index and the appropriate shader is retrieved from a table. Bug: angleproject:2958 Change-Id: Ic4fc7061adb20c047c26624305285e3005092aab Reviewed-on: https://chromium-review.googlesource.com/c/1351117 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by:Geoff Lang <geofflang@chromium.org>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| bmp_to_nv12.py | Loading commit data... | |
| bootstrap.py | Loading commit data... | |
| entry_point_packed_gl_enums.json | Loading commit data... | |
| gen_angle_gn_info_json.py | Loading commit data... | |
| generate_entry_points.py | Loading commit data... | |
| generate_new_renderer.py | Loading commit data... | |
| generate_vulkan_layers_json.py | Loading commit data... | |
| gl.xml | Loading commit data... | |
| gl_angle_ext.xml | Loading commit data... | |
| msvs_projects.py | Loading commit data... | |
| perf_test_runner.py | Loading commit data... | |
| remove_file_if_exists.py | Loading commit data... | |
| run_code_generation.py | Loading commit data... | |
| run_code_generation_hashes.json | Loading commit data... | |
| update_canary_angle.py | Loading commit data... | |
| vk_mandatory_format_support_capture_to_json.js | Loading commit data... |