Blender
V5.0
intern
opensubdiv
internal
evaluator
eval_output.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2021 Blender Foundation
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later
4
*
5
* Author: Sergey Sharybin. */
6
7
#include "
internal/evaluator/eval_output.h
"
8
9
namespace
blender::opensubdiv
{
10
bool
is_adaptive
(
const
CpuPatchTable *patch_table)
11
{
12
return
patch_table->GetPatchArrayBuffer()[0].GetDescriptor().IsAdaptive();
13
}
14
15
bool
is_adaptive
(
const
GPUPatchTable
*patch_table)
16
{
17
return
patch_table->
GetPatchArrays
()[0].GetDescriptor().IsAdaptive();
18
}
19
20
}
// namespace blender::opensubdiv
blender::opensubdiv::GPUPatchTable
Definition
gpu_patch_table.hh:21
blender::opensubdiv::GPUPatchTable::GetPatchArrays
PatchArrayVector const & GetPatchArrays() const
Returns the patch arrays for vertex index buffer data.
Definition
gpu_patch_table.hh:28
eval_output.h
blender::opensubdiv
Definition
BKE_subdiv.hh:19
blender::opensubdiv::is_adaptive
bool is_adaptive(const CpuPatchTable *patch_table)
Definition
eval_output.cc:10
Generated on
for Blender by
doxygen
1.16.1