本文整理汇总了C++中OsdCudaComputeContext::GetCurrentVaryingBuffer方法的典型用法代码示例。如果您正苦于以下问题:C++ OsdCudaComputeContext::GetCurrentVaryingBuffer方法的具体用法?C++ OsdCudaComputeContext::GetCurrentVaryingBuffer怎么用?C++ OsdCudaComputeContext::GetCurrentVaryingBuffer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OsdCudaComputeContext
的用法示例。
在下文中一共展示了OsdCudaComputeContext::GetCurrentVaryingBuffer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: assert
void
OsdCudaComputeController::ApplyLoopVertexVerticesKernelB(
FarKernelBatch const &batch, void * clientdata) const {
OsdCudaComputeContext * context =
static_cast<OsdCudaComputeContext*>(clientdata);
assert(context);
const OsdCudaTable * V_ITa = context->GetTable(FarSubdivisionTables<OsdVertex>::V_ITa);
const OsdCudaTable * V_IT = context->GetTable(FarSubdivisionTables<OsdVertex>::V_IT);
const OsdCudaTable * V_W = context->GetTable(FarSubdivisionTables<OsdVertex>::V_W);
assert(V_ITa);
assert(V_IT);
assert(V_W);
OsdCudaComputeLoopVertexB(
context->GetCurrentVertexBuffer(),
context->GetCurrentVaryingBuffer(),
context->GetVertexDescriptor().numVertexElements-3,
context->GetVertexDescriptor().numVaryingElements,
static_cast<int*>(V_ITa->GetCudaMemory()),
static_cast<int*>(V_IT->GetCudaMemory()),
static_cast<float*>(V_W->GetCudaMemory()),
batch.GetVertexOffset(), batch.GetTableOffset(), batch.GetStart(), batch.GetEnd());
}
示例2: assert
void
OsdCudaKernelDispatcher::ApplyLoopVertexVerticesKernelB(
FarMesh<OsdVertex> * mesh, int offset, int level,
int start, int end, void * clientdata) const {
OsdCudaComputeContext * context =
static_cast<OsdCudaComputeContext*>(clientdata);
assert(context);
const OsdCudaTable * V_ITa = context->GetTable(Table::V_ITa);
const OsdCudaTable * V_IT = context->GetTable(Table::V_IT);
const OsdCudaTable * V_W = context->GetTable(Table::V_W);
assert(V_ITa);
assert(V_IT);
assert(V_W);
OsdCudaComputeLoopVertexB(
context->GetCurrentVertexBuffer(),
context->GetCurrentVaryingBuffer(),
context->GetCurrentVertexNumElements()-3,
context->GetCurrentVaryingNumElements(),
static_cast<int*>(V_ITa->GetCudaMemory()) + V_ITa->GetMarker(level-1),
static_cast<int*>(V_IT->GetCudaMemory()) + V_IT->GetMarker(level-1),
static_cast<float*>(V_W->GetCudaMemory()) + V_W->GetMarker(level-1),
offset, start, end);
}