OWL
Loading...
Searching...
No Matches
CurvesGeomGroup.h
1// ======================================================================== //
2// Copyright 2019-2021 Ingo Wald //
3// //
4// Licensed under the Apache License, Version 2.0 (the "License"); //
5// you may not use this file except in compliance with the License. //
6// You may obtain a copy of the License at //
7// //
8// http://www.apache.org/licenses/LICENSE-2.0 //
9// //
10// Unless required by applicable law or agreed to in writing, software //
11// distributed under the License is distributed on an "AS IS" BASIS, //
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. //
13// See the License for the specific language governing permissions and //
14// limitations under the License. //
15// ======================================================================== //
16
17#pragma once
18
19#include "Group.h"
20
21namespace owl {
22
24 struct CurvesGeomGroup : public GeomGroup {
25
27 CurvesGeomGroup(Context *const context, size_t numChildren, unsigned int buildFlags);
28
30 std::string toString() const override;
31
32 void buildAccel(LaunchParams::SP launchParams = nullptr) override;
33 void refitAccel(LaunchParams::SP launchParams = nullptr) override;
34
37 void updateMotionBounds();
38
40 template<bool FULL_REBUILD>
41 void buildAccelOn(const DeviceContext::SP &device);
42
43 constexpr static unsigned int defaultBuildFlags =
44 OPTIX_BUILD_FLAG_PREFER_FAST_TRACE |
45 OPTIX_BUILD_FLAG_ALLOW_COMPACTION;
46
47 protected:
48 const unsigned int buildFlags;
49 };
50
51} // ::owl
Definition: Context.h:32
Definition: CurvesGeomGroup.h:24
void buildAccel(LaunchParams::SP launchParams=nullptr) override
Definition: CurvesGeomGroup.cpp:60
void updateMotionBounds()
Definition: CurvesGeomGroup.cpp:54
void refitAccel(LaunchParams::SP launchParams=nullptr) override
Definition: CurvesGeomGroup.cpp:69
void buildAccelOn(const DeviceContext::SP &device)
Definition: CurvesGeomGroup.cpp:79
std::string toString() const override
Definition: CurvesGeomGroup.cpp:37
Definition: Group.h:102