Struct Desc

Synopsis

#include <Source/Falcor/Core/API/Device.h>

struct Desc

Description

Device configuration

Source

Lines 57-73 in Source/Falcor/Core/API/Device.h.

struct Desc
{
    ResourceFormat colorFormat = ResourceFormat::BGRA8UnormSrgb;    ///< The color buffer format
    ResourceFormat depthFormat = ResourceFormat::D32Float;          ///< The depth buffer format
    uint32_t apiMajorVersion = 0;                                   ///< Requested API major version. If specified, device creation will fail if not supported. Otherwise, the highest supported version will be automatically selected.
    uint32_t apiMinorVersion = 0;                                   ///< Requested API minor version. If specified, device creation will fail if not supported. Otherwise, the highest supported version will be automatically selected.
    bool enableVsync = false;                                       ///< Controls vertical-sync
    bool enableDebugLayer = DEFAULT_ENABLE_DEBUG_LAYER;             ///< Enable the debug layer. The default for release build is false, for debug build it's true.
    static_assert((uint32_t)LowLevelContextData::CommandQueueType::Direct == 2, "Default initialization of cmdQueues assumes that Direct queue index is 2");
    std::array<uint32_t, kQueueTypeCount> cmdQueues = { 0, 0, 1 };  ///< Command queues to create. If no direct-queues are created, mpRenderContext will not be initialized
ALCOR_D3D12
    // GUID list for experimental features
    std::vector<UUID> experimentalFeatures;
};





Add Discussion as Guest

Log in