8#ifndef OPENSUBDIV3_OSD_GL_PATCH_TABLE_H
9#define OPENSUBDIV3_OSD_GL_PATCH_TABLE_H
11#include "../version.h"
13#include "../osd/nonCopyable.h"
19namespace OPENSUBDIV_VERSION {
29 using ID =
unsigned int;
35 void *deviceContext = NULL);
135using namespace OPENSUBDIV_VERSION;
std::vector< PatchArray > PatchArrayVector
Container for arrays of parametric patches.
ID GetFVarPatchIndexBuffer(int fvarChannel=0) const
Returns the GL index buffer containing face-varying control vertices.
PatchArrayVector const & GetPatchArrays() const
Returns the patch arrays for vertex index buffer data.
std::vector< ID > _fvarIndexTextures
ID GetPatchIndexBuffer() const
Returns the GL index buffer containing the patch control vertices.
bool allocate(Far::PatchTable const *farPatchTable)
ID GetPatchParamBuffer() const
Returns the GL index buffer containing the patch parameter.
static GLPatchTable * Create(Far::PatchTable const *farPatchTable, void *deviceContext=NULL)
ID GetFVarPatchParamBuffer(int fvarChannel=0) const
Returns the GL index buffer containing face-varying patch params.
std::vector< ID > _fvarParamBuffers
PatchArrayVector _patchArrays
ID GetVaryingPatchIndexTextureBuffer() const
Returns the GL texture buffer containing the varying control vertices.
ID GetPatchIndexTextureBuffer() const
Returns the GL texture buffer containing the patch control vertices.
ID GetPatchParamTextureBuffer() const
Returns the GL texture buffer containing the patch parameter.
std::vector< ID > _fvarIndexBuffers
ID GetFVarPatchParamTextureBuffer(int fvarChannel=0) const
Returns the GL texture buffer containing face-varying patch params.
int GetNumFVarChannels() const
Returns the number of face-varying channel buffers.
std::vector< ID > _fvarParamTextures
ID GetFVarPatchIndexTextureBuffer(int fvarChannel=0) const
Returns the GL texture buffer containing face-varying control vertices.
PatchArrayVector const & GetFVarPatchArrays(int fvarChannel=0) const
Returns the patch arrays for face-varying index buffer data.
std::vector< PatchArrayVector > _fvarPatchArrays
PatchArrayVector _varyingPatchArrays
ID GetVaryingPatchIndexBuffer() const
Returns the GL index buffer containing the varying control vertices.
PatchArrayVector const & GetVaryingPatchArrays() const
Returns the patch arrays for varying index buffer data.