diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-10-16 12:18:36 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-10-30 17:15:55 +0300 |
commit | b4fb3db559ccd79e06a44ee9605f969bf8ef7d57 (patch) | |
tree | a61d8a216640997441dda841f61389d5afdae039 /intern | |
parent | 8e470033ab9a2ae8a61f0a0d4555f6b7bbe6081e (diff) |
OpenSubdiv: Cleanup, remove unused PatchBuffer class
Diffstat (limited to 'intern')
-rw-r--r-- | intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc index c870df7ab5d..d2cd366ba11 100644 --- a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc +++ b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc @@ -65,29 +65,6 @@ namespace opensubdiv_capi { namespace { -// Helper class to wrap numerous of patch coordinates into a buffer. -// Used to pass coordinates to the CPU evaluator. Other evaluators are not -// supported. -class PatchCoordBuffer : public vector<PatchCoord> { - public: - PatchCoord *BindCpuBuffer() - { - return reinterpret_cast<PatchCoord *>(&(*this)[0]); - } - - int GetNumVertices() - { - return size(); - } - - void UpdateData(const PatchCoord *patch_coords, int num_patch_coords) - { - memcpy(&(*this)[0], - reinterpret_cast<const void *>(patch_coords), - sizeof(PatchCoord) * num_patch_coords); - } -}; - // Helper class to wrap single of patch coord into a buffer. Used to pass // coordinates to the CPU evaluator. Other evaluators are not supported. class SinglePatchCoordBuffer { |