All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KernelBatch Struct Reference

A GP Compute Kernel descriptor. More...

#include <kernelBatch.h>

Public Types

enum  KernelType { KERNEL_UNKNOWN =0, KERNEL_STENCIL_TABLE, KERNEL_USER_DEFINED }
 

Public Member Functions

 KernelBatch (int _kernelType, int _level, int _start, int _end)
 Constructor. More...
 

Public Attributes

int kernelType
 
int level
 
int start
 
int end
 

Detailed Description

A GP Compute Kernel descriptor.

Vertex refinement through subdivision schemes requires the successive application of dedicated compute kernels. OpenSubdiv groups these vertices in batches based on their topology in order to minimize the number of kernel switches to process a given primitive.

Definition at line 44 of file kernelBatch.h.

Member Enumeration Documentation

enum KernelType
Enumerator
KERNEL_UNKNOWN 
KERNEL_STENCIL_TABLE 
KERNEL_USER_DEFINED 

Definition at line 48 of file kernelBatch.h.

Constructor & Destructor Documentation

KernelBatch ( int  _kernelType,
int  _level,
int  _start,
int  _end 
)
inline

Constructor.

Parameters
_kernelTypeThe type of compute kernel kernel
_levelThe level of subdivision of the vertices in the batch
_startIndex of the first vertex in the batch
_endIndex of the last vertex in the batch

Definition at line 64 of file kernelBatch.h.

Member Data Documentation

int end

Definition at line 67 of file kernelBatch.h.

int kernelType

Definition at line 67 of file kernelBatch.h.

int level

Definition at line 67 of file kernelBatch.h.

int start

Definition at line 67 of file kernelBatch.h.


The documentation for this struct was generated from the following file: