diff options
author | Patrick Mours <pmours@nvidia.com> | 2022-09-09 12:55:35 +0300 |
---|---|---|
committer | Patrick Mours <pmours@nvidia.com> | 2022-09-09 16:35:44 +0300 |
commit | ef7c9e793ec5331ac694eec9336565bd2254c406 (patch) | |
tree | ca30908bae0bac8c58d18b964af7dc388f9de463 /.clang-format | |
parent | 291c313f80b4cccc8fcce3035584caeaa654844f (diff) |
Cycles: Remove separate OSL attribute map and instead always use SVM attribute map
The SVM attribute map is always generated and uses a simple
linear search to lookup by an opaque ID, so can reuse that for OSL
as well and simply use the attribute name hash as ID instead of
generating a unique value separately. This works for both object
and geometry attributes since the SVM attribute map already
stores both. Simplifies code somewhat and reduces memory
usage slightly.
This patch was split from D15902.
Differential Revision: https://developer.blender.org/D15918
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions