Lluvia
ll::SessionDescriptor Class Reference

#include <SessionDescriptor.h>

Public Member Functions

SessionDescriptorenableDebug (const bool enable) noexcept
 Enable validation layers and debug callbacks for this session. More...
 
bool isDebugEnabled () const noexcept
 
SessionDescriptorsetDeviceDescriptor (const ll::DeviceDescriptor &deviceDescriptor) noexcept
 Sets the device descriptor used to create a session. More...
 
const std::optional< ll::DeviceDescriptor > & getDeviceDescriptor () const noexcept
 

Member Function Documentation

◆ enableDebug()

SessionDescriptor& ll::SessionDescriptor::enableDebug ( const bool  enable)
noexcept

Enable validation layers and debug callbacks for this session.

When enabled, the vulkan VK_LAYER_KHRONOS_validation layer is activated, and messages about bad usage of the API will appear.

Parameters
[in]enablewhether or not debug is enabled.
Returns
A reference to this object.

◆ getDeviceDescriptor()

const std::optional<ll::DeviceDescriptor>& ll::SessionDescriptor::getDeviceDescriptor ( ) const
noexcept

◆ isDebugEnabled()

bool ll::SessionDescriptor::isDebugEnabled ( ) const
noexcept
Returns
whether or not debugging is enabled.

◆ setDeviceDescriptor()

SessionDescriptor& ll::SessionDescriptor::setDeviceDescriptor ( const ll::DeviceDescriptor deviceDescriptor)
noexcept

Sets the device descriptor used to create a session.

Returns
A reference to this object.

The documentation for this class was generated from the following file: