Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
kernelBatch.h
Go to the documentation of this file.
1
//
2
// Copyright 2013 Pixar
3
//
4
// Licensed under the Apache License, Version 2.0 (the "Apache License")
5
// with the following modification; you may not use this file except in
6
// compliance with the Apache License and the following modification to it:
7
// Section 6. Trademarks. is deleted and replaced with:
8
//
9
// 6. Trademarks. This License does not grant permission to use the trade
10
// names, trademarks, service marks, or product names of the Licensor
11
// and its affiliates, except as required to comply with Section 4(c) of
12
// the License and to reproduce the content of the NOTICE file.
13
//
14
// You may obtain a copy of the Apache License at
15
//
16
// http://www.apache.org/licenses/LICENSE-2.0
17
//
18
// Unless required by applicable law or agreed to in writing, software
19
// distributed under the Apache License with the above modification is
20
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21
// KIND, either express or implied. See the Apache License for the specific
22
// language governing permissions and limitations under the Apache License.
23
//
24
25
#ifndef FAR_KERNEL_BATCH_H
26
#define FAR_KERNEL_BATCH_H
27
28
#include "../version.h"
29
30
#include <vector>
31
32
namespace
OpenSubdiv {
33
namespace
OPENSUBDIV_VERSION {
34
35
namespace
Far {
36
44
struct
KernelBatch
{
45
46
public
:
47
48
enum
KernelType
{
49
KERNEL_UNKNOWN
=0,
50
KERNEL_STENCIL_TABLE
,
51
KERNEL_USER_DEFINED
52
};
53
64
KernelBatch
(
int
_kernelType,
int
_level,
int
_start,
int
_end ) :
65
kernelType
(_kernelType),
level
(_level),
start
(_start),
end
(_end) { }
66
67
int
kernelType
,
// the type of compute kernel kernel
68
level
,
// the level of subdivision of the vertices in the batch
69
start
,
// index of the first vertex in the batch
70
end
;
// index of the last vertex in the batch
71
};
72
73
typedef
std::vector<KernelBatch>
KernelBatchVector
;
74
75
}
// end namespace Far
76
77
}
// end namespace OPENSUBDIV_VERSION
78
using namespace
OPENSUBDIV_VERSION;
79
80
}
// end namespace OpenSubdiv
81
82
#endif
/* FAR_KERNEL_BATCH_H */
83
OpenSubdiv::OPENSUBDIV_VERSION::Far::KernelBatch::KERNEL_UNKNOWN
Definition:
kernelBatch.h:49
OpenSubdiv::OPENSUBDIV_VERSION::Far::KernelBatch::KERNEL_STENCIL_TABLE
Definition:
kernelBatch.h:50
OpenSubdiv::OPENSUBDIV_VERSION::Far::KernelBatch::start
int start
Definition:
kernelBatch.h:67
OpenSubdiv::OPENSUBDIV_VERSION::Far::KernelBatch
A GP Compute Kernel descriptor.
Definition:
kernelBatch.h:44
OpenSubdiv::OPENSUBDIV_VERSION::Far::KernelBatchVector
std::vector< KernelBatch > KernelBatchVector
Definition:
kernelBatch.h:73
OpenSubdiv::OPENSUBDIV_VERSION::Far::KernelBatch::level
int level
Definition:
kernelBatch.h:67
OpenSubdiv::OPENSUBDIV_VERSION::Far::KernelBatch::KernelBatch
KernelBatch(int _kernelType, int _level, int _start, int _end)
Constructor.
Definition:
kernelBatch.h:64
OpenSubdiv::OPENSUBDIV_VERSION::Far::KernelBatch::KERNEL_USER_DEFINED
Definition:
kernelBatch.h:51
OpenSubdiv::OPENSUBDIV_VERSION::Far::KernelBatch::kernelType
int kernelType
Definition:
kernelBatch.h:67
OpenSubdiv::OPENSUBDIV_VERSION::Far::KernelBatch::end
int end
Definition:
kernelBatch.h:67
OpenSubdiv::OPENSUBDIV_VERSION::Far::KernelBatch::KernelType
KernelType
Definition:
kernelBatch.h:48
opensubdiv
far
kernelBatch.h
Generated on Thu Sep 4 2014 11:35:42 by
1.8.4