diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-10-16 13:31:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-10-30 17:15:55 +0300 |
commit | 5843827fb9ff4338de78ada25ed4d71fe0f32b4a (patch) | |
tree | e9439534771e813c7a869704b2b6523f668b8a6a /intern/opensubdiv/internal | |
parent | 4227a35b3271daec0cf886d3887e3de65ba9fabe (diff) |
OpenSubdiv: Cleanup, remove unused class
Diffstat (limited to 'intern/opensubdiv/internal')
-rw-r--r-- | intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc index c584fad7543..86271da59bc 100644 --- a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc +++ b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc @@ -96,27 +96,6 @@ class SinglePatchCoordBuffer { PatchCoord patch_coord_; }; -// Helper class which is aimed to be used in cases when buffer is small enough -// and better to be allocated in stack rather than in heap. -// -// TODO(sergey): Check if bare arrays could be used by CPU evaluator. -template<int element_size, int num_vertices> class StackAllocatedBuffer { - public: - float *BindCpuBuffer() - { - return &data_[0]; - } - - int GetNumVertices() - { - return num_vertices; - } - - // TODO(sergey): Support UpdateData(). - protected: - float data_[element_size * num_vertices]; -}; - // Buffer which implements API required by OpenSubdiv and uses an existing memory as an underlying // storage. template<typename T> class RawDataWrapperBuffer { |