| 21 | namespace gl { |
| 22 | |
| 23 | struct RuntimeOptions { |
| 24 | RuntimeOptions() |
| 25 | : reuse_internal_objects(true), bundle_readonly_objects(true) {} |
| 26 | |
| 27 | // If enabled triggers greedy algorithm to re-use internal buffers when |
| 28 | // possible. |
| 29 | // Keep this false when, for example, one need to analyze intermediate |
| 30 | // results for debugging purposes. |
| 31 | bool reuse_internal_objects; |
| 32 | |
| 33 | // If enabled all readonly objects will be bundled to create as few buffers or |
| 34 | // textures as possible. |
| 35 | bool bundle_readonly_objects; |
| 36 | }; |
| 37 | |
| 38 | } // namespace gl |
| 39 | } // namespace gpu |