MUDA
Loading...
Searching...
No Matches
utility.h
1
#pragma once
2
#include <muda/muda_def.h>
3
#include <vector_types.h>
4
#include <math_constants.h>
5
6
namespace
muda::lbvh
7
{
8
template
<
typename
T>
9
struct
vector_of
;
10
template
<>
11
struct
vector_of
<float>
12
{
13
using
type = float4;
14
};
15
template
<>
16
struct
vector_of
<double>
17
{
18
using
type = double4;
19
};
20
21
template
<
typename
T>
22
using
vector_of_t =
typename
vector_of<T>::type
;
23
24
template
<
typename
T>
25
__device__
inline
T infinity() noexcept;
26
27
template <>
28
__device__ inline
float
infinity<
float
>() noexcept
29
{
30
return
CUDART_INF_F;
31
}
32
template
<>
33
__device__
inline
double
infinity<double>() noexcept
34
{
35
return
CUDART_INF;
36
}
37
38
}
// namespace muda::lbvh
muda::lbvh::vector_of
Definition
utility.h:9
src
muda
ext
geo
lbvh
utility.h
Generated by
1.9.8