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 TbbEvalPatches(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 int numPatchCoords,
70 const PatchCoord *patchCoords,
71 const PatchArray *patchArrayBuffer,
72 const int *patchIndexBuffer,
73 const PatchParam *patchParamBuffer);
74
75 } // end namespace Osd
76
77 } // end namespace OPENSUBDIV_VERSION
78 using namespace OPENSUBDIV_VERSION;
79
80 } // end namespace OpenSubdiv
81
82 #endif // OPENSUBDIV3_OSD_TBB_KERNEL_H
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
Definition: error.h:30
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)