diff options
| author | Tobin Ehlis <tobine@google.com> | 2017-07-11 11:24:22 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-07-11 14:38:31 -0600 |
| commit | 797e93c3aa9e547aeaee12db34cac3b745ad111d (patch) | |
| tree | 4a3da289832cc465ed3764c41bb08c0ea429e6eb /scripts/unique_objects_generator.py | |
| parent | 66175388142af434dbcc8d0ce03e2c0bb4d399d0 (diff) | |
| download | usermoji-797e93c3aa9e547aeaee12db34cac3b745ad111d.tar.xz | |
layers:Refactor CmdUpdateBuffer to Pre/Post
Refactoring CmdUpdateBuffer function to use the Pre/Post call pattern.
Updated the pre-path so that command buffer state pointer is const
throughout. Pulled the state update code into the post function.
Note that this slightly deviates from the previous pattern by doing
object state look-up in top-level function instead of passing a ptr to
a ptr to Pre* function and having it do the object state look-up.
I prefer this method as it allows const* throughout the Pre* call chain
and avoids the ptr derefs in Pre* function. I'm open to discussion if
others prefer the alternate method however.
Diffstat (limited to 'scripts/unique_objects_generator.py')
0 files changed, 0 insertions, 0 deletions
