Lluvia
SessionDescriptor.h
Go to the documentation of this file.
1 
7 #ifndef LLUVIA_CORE_SESSION_DESCRIPTOR_H_
8 #define LLUVIA_CORE_SESSION_DESCRIPTOR_H_
9 
10 #include <optional>
11 
13 
14 namespace ll {
15 
17 
18 public:
30  SessionDescriptor& enableDebug(const bool enable) noexcept;
31 
36  bool isDebugEnabled() const noexcept;
37 
43  SessionDescriptor& setDeviceDescriptor(const ll::DeviceDescriptor& deviceDescriptor) noexcept;
44 
45  const std::optional<ll::DeviceDescriptor>& getDeviceDescriptor() const noexcept;
46 
47 private:
48  bool m_enableDebug {false};
49 
50  std::optional<ll::DeviceDescriptor> m_deviceDescriptor {};
51 };
52 
53 } // namespace ll
54 
55 #endif // LLUVIA_CORE_SESSION_DESCRIPTOR_H_
Definition: SessionDescriptor.h:16
SessionDescriptor & setDeviceDescriptor(const ll::DeviceDescriptor &deviceDescriptor) noexcept
Sets the device descriptor used to create a session.
SessionDescriptor & enableDebug(const bool enable) noexcept
Enable validation layers and debug callbacks for this session.
bool isDebugEnabled() const noexcept
const std::optional< ll::DeviceDescriptor > & getDeviceDescriptor() const noexcept
Definition: Buffer.h:28
Definition: DeviceDescriptor.h:18