Cleanup: various non functional changes
- Use const arguments. - Quiet unused assignment warnings. - Use explicit cast to suppress CPPCHECK's truncLongCastReturn warning.
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
#include "internal/evaluator/eval_output.h"
|
||||
|
||||
namespace blender::opensubdiv {
|
||||
bool is_adaptive(CpuPatchTable *patch_table)
|
||||
bool is_adaptive(const CpuPatchTable *patch_table)
|
||||
{
|
||||
return patch_table->GetPatchArrayBuffer()[0].GetDescriptor().IsAdaptive();
|
||||
}
|
||||
|
||||
bool is_adaptive(GLPatchTable *patch_table)
|
||||
bool is_adaptive(const GLPatchTable *patch_table)
|
||||
{
|
||||
return patch_table->GetPatchArrays()[0].GetDescriptor().IsAdaptive();
|
||||
}
|
||||
|
||||
@@ -161,8 +161,8 @@ class ConstPatchCoordWrapperBuffer : public RawDataWrapperVertexBuffer<const Pat
|
||||
|
||||
// Discriminators used in FaceVaryingVolatileEval in order to detect whether we are using adaptive
|
||||
// patches as the CPU and OpenGL PatchTable have different APIs.
|
||||
bool is_adaptive(CpuPatchTable *patch_table);
|
||||
bool is_adaptive(GLPatchTable *patch_table);
|
||||
bool is_adaptive(const CpuPatchTable *patch_table);
|
||||
bool is_adaptive(const GLPatchTable *patch_table);
|
||||
|
||||
template<typename EVAL_VERTEX_BUFFER,
|
||||
typename STENCIL_TABLE,
|
||||
|
||||
Reference in New Issue
Block a user