Files
test/intern/opensubdiv/internal/evaluator/eval_output.cc

24 lines
522 B
C++

/* SPDX-FileCopyrightText: 2021 Blender Foundation
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* Author: Sergey Sharybin. */
#include "internal/evaluator/eval_output.h"
namespace blender {
namespace opensubdiv {
bool is_adaptive(CpuPatchTable *patch_table)
{
return patch_table->GetPatchArrayBuffer()[0].GetDescriptor().IsAdaptive();
}
bool is_adaptive(GLPatchTable *patch_table)
{
return patch_table->GetPatchArrays()[0].GetDescriptor().IsAdaptive();
}
} // namespace opensubdiv
} // namespace blender