| OpenSubdiv OpenSubdiv

Loading...
Searching...
No Matches
tbbKernel.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 OPENSUBDIV3_OSD_TBB_KERNEL_H
26#define OPENSUBDIV3_OSD_TBB_KERNEL_H
27
28#include "../version.h"
29#include "../far/patchDescriptor.h"
30#include "../far/patchParam.h"
31
32 namespace OpenSubdiv {
33 namespace OPENSUBDIV_VERSION {
34
35 namespace Osd {
36
37 struct PatchArray;
38 struct PatchCoord;
39 struct PatchParam;
40 struct BufferDescriptor;
41
42 void
43 TbbEvalStencils(float const * src, BufferDescriptor const &srcDesc,
44 float * dst, BufferDescriptor const &dstDesc,
45 int const * sizes,
46 int const * offsets,
47 int const * indices,
48 float const * weights,
49 int start, int end);
50
51 void
52 TbbEvalStencils(float const * src, BufferDescriptor const &srcDesc,
53 float * dst, BufferDescriptor const &dstDesc,
54 float * dstDu, BufferDescriptor const &dstDuDesc,
55 float * dstDv, BufferDescriptor const &dstDvDesc,
56 int const * sizes,
57 int const * offsets,
58 int const * indices,
59 float const * weights,
60 float const * duWeights,
61 float const * dvWeights,
62 int start, int end);
63
64 void
65 TbbEvalStencils(float const * src, BufferDescriptor const &srcDesc,
66 float * dst, BufferDescriptor const &dstDesc,
67 float * dstDu, BufferDescriptor const &dstDuDesc,
68 float * dstDv, BufferDescriptor const &dstDvDesc,
69 float * dstDuu, BufferDescriptor const &dstDuuDesc,
70 float * dstDuv, BufferDescriptor const &dstDuvDesc,
71 float * dstDvv, BufferDescriptor const &dstDvvDesc,
72 int const * sizes,
73 int const * offsets,
74 int const * indices,
75 float const * weights,
76 float const * duWeights,
77 float const * dvWeights,
78 float const * duuWeights,
79 float const * duvWeights,
80 float const * dvvWeights,
81 int start, int end);
82
83 void
84 TbbEvalPatches(float const *src, BufferDescriptor const &srcDesc,
85 float *dst, BufferDescriptor const &dstDesc,
86 float *dstDu, BufferDescriptor const &dstDuDesc,
87 float *dstDv, BufferDescriptor const &dstDvDesc,
88 int numPatchCoords,
89 const PatchCoord *patchCoords,
90 const PatchArray *patchArrayBuffer,
91 const int *patchIndexBuffer,
92 const PatchParam *patchParamBuffer);
93
94 void
95 TbbEvalPatches(float const *src, BufferDescriptor const &srcDesc,
96 float *dst, BufferDescriptor const &dstDesc,
97 float *dstDu, BufferDescriptor const &dstDuDesc,
98 float *dstDv, BufferDescriptor const &dstDvDesc,
99 float *dstDuu, BufferDescriptor const &dstDuuDesc,
100 float *dstDuv, BufferDescriptor const &dstDuvDesc,
101 float *dstDvv, BufferDescriptor const &dstDvvDesc,
102 int numPatchCoords,
103 const PatchCoord *patchCoords,
104 const PatchArray *patchArrayBuffer,
105 const int *patchIndexBuffer,
106 const PatchParam *patchParamBuffer);
107
108} // end namespace Osd
109
110} // end namespace OPENSUBDIV_VERSION
111 using namespace OPENSUBDIV_VERSION;
112
113} // end namespace OpenSubdiv
114
115#endif // OPENSUBDIV3_OSD_TBB_KERNEL_H
OpenSubdiv
Definition limits.h:32
OpenSubdiv::OPENSUBDIV_VERSION::Osd::TbbEvalPatches
void TbbEvalPatches(float const *src, BufferDescriptor const &srcDesc, float *dst, BufferDescriptor const &dstDesc, float *dstDu, BufferDescriptor const &dstDuDesc, float *dstDv, BufferDescriptor const &dstDvDesc, int numPatchCoords, const PatchCoord *patchCoords, const PatchArray *patchArrayBuffer, const int *patchIndexBuffer, const PatchParam *patchParamBuffer)
OpenSubdiv::OPENSUBDIV_VERSION::Osd::TbbEvalStencils
void TbbEvalStencils(float const *src, BufferDescriptor const &srcDesc, float *dst, BufferDescriptor const &dstDesc, int const *sizes, int const *offsets, int const *indices, float const *weights, int start, int end)
OpenSubdiv::OPENSUBDIV_VERSION::Osd::BufferDescriptor
BufferDescriptor is a struct which describes buffer elements in interleaved data buffers....
Definition bufferDescriptor.h:61
OpenSubdiv::OPENSUBDIV_VERSION::Osd::PatchCoord
Coordinates set on a patch table.
Definition types.h:42
OpenSubdiv::OPENSUBDIV_VERSION::Osd::PatchArray
Definition types.h:66
OpenSubdiv::OPENSUBDIV_VERSION::Osd::PatchParam
Definition types.h:127