AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
RaytraceConfig.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16#pragma once
17#include <agxSensor/export.h>
18
19#include <agx/Singleton.h>
20#include <agx/BitState.h>
21
22namespace agxSensor
23{
28 {
29 public:
30 static constexpr agx::Int32 RT_CUDA_COMPUTE_CAPABILITY_MAJOR = 7;
31 static constexpr agx::Int32 RT_CUDA_COMPUTE_CAPABILITY_MINOR = 5;
32
33 public:
37 static bool isRaytraceSupported();
38
43
48 static int getRaytraceDevice();
49
55 static bool setRaytraceDevice( int deviceIndex );
56
61 static std::vector<std::string> listRaytraceDevices();
62
66 static void cleanup();
67
69
70 private:
71 enum RaytraceStateFlag : agx::UInt16
72 {
73 UPDATED = 1 << 0,
74 SUPPORTED = 1 << 1,
75 WARNING_ISSUED = 1 << 2,
76 };
77
78 using RaytraceState = agx::BitState<RaytraceStateFlag>;
79
81
82 private:
83 static RaytraceState s_raytraceState;
84 };
85}
#define AGXSENSOR_EXPORT
Utility functions used for configuration of the lower level raytracing functionality of agxSensor.
static bool isRaytraceSupported()
static int getRaytraceDevice()
static std::vector< std::string > listRaytraceDevices()
Lists the devices available for raytracing.
static bool verifyRaytraceSupported()
Checks if raytracing is supported on this device/platform.
static void cleanup()
Resets internal state.
static bool setRaytraceDevice(int deviceIndex)
Attempts to set the hardware device to use to the one with the specified index.
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:89
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:88
The agxSensor namespace contains components to model real-time sensors connected to the physics of AG...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
int32_t Int32
Definition: Integer.h:37