• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2024 The Amber Authors.
2 // Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
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 #include "src/acceleration_structure.h"
17 
18 #include <algorithm>
19 #include <cassert>
20 #include <cmath>
21 #include <cstring>
22 
23 namespace amber {
24 
25 Geometry::Geometry() = default;
26 Geometry::~Geometry() = default;
27 
28 BLAS::BLAS() = default;
29 BLAS::~BLAS() = default;
30 
31 BLASInstance::~BLASInstance() = default;
32 
33 TLAS::TLAS() = default;
34 TLAS::~TLAS() = default;
35 
ShaderGroup()36 ShaderGroup::ShaderGroup()
37     : name_(),
38       generalShader_(nullptr),
39       closestHitShader_(nullptr),
40       anyHitShader_(nullptr),
41       intersectionShader_(nullptr) {}
42 
43 ShaderGroup::~ShaderGroup() = default;
44 
45 SBTRecord::SBTRecord() = default;
46 SBTRecord::~SBTRecord() = default;
47 
48 SBT::SBT() = default;
49 SBT::~SBT() = default;
50 
51 }  // namespace amber
52