Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
device.cpp File Reference
#include "gpu/device.h"
#include "core/aliases.h"
#include "core/hresult.h"
#include "core/log.h"
#include "core/unicode.h"
#include "gpu/com_ptr.h"
Include dependency graph for device.cpp:

Go to the source code of this file.

Classes

struct  bicameral::gpu::anonymous_namespace{device.cpp}::WarpModule

Namespaces

namespace  bicameral
namespace  bicameral::gpu
namespace  bicameral::gpu::anonymous_namespace{device.cpp}

Typedefs

using bicameral::gpu::anonymous_namespace{device.cpp}::DeviceResult = std::expected<ComPtr<ID3D12Device5>, std::string>

Functions

std::string bicameral::gpu::anonymous_namespace{device.cpp}::FindMissingFeatures (ID3D12Device *device)
ComPtr< ID3D12Device5 > bicameral::gpu::anonymous_namespace{device.cpp}::TryCreateHardwareDevice (IDXGIAdapter1 *adapter)
bool bicameral::gpu::anonymous_namespace{device.cpp}::AdapterOwnsMonitor (IDXGIAdapter1 *adapter, HMONITOR monitor)
ComPtr< ID3D12Device5 > bicameral::gpu::anonymous_namespace{device.cpp}::CreateFirstHardwareDevice (IDXGIFactory6 *factory, HMONITOR monitor)
DeviceResult bicameral::gpu::anonymous_namespace{device.cpp}::CreateHardwareDevice (IDXGIFactory6 *factory, HMONITOR presentMonitor)
WarpModule bicameral::gpu::anonymous_namespace{device.cpp}::DescribeWarpModule ()
DeviceResult bicameral::gpu::anonymous_namespace{device.cpp}::CreateWarpDevice (IDXGIFactory6 *factory)
void bicameral::gpu::anonymous_namespace{device.cpp}::EnableDebugFeatures (const DeviceOptions &options)
Level bicameral::gpu::anonymous_namespace{device.cpp}::LevelOfSeverity (D3D12_MESSAGE_SEVERITY severity)
std::string bicameral::gpu::anonymous_namespace{device.cpp}::BreadcrumbOpName (D3D12_AUTO_BREADCRUMB_OP op)
std::string bicameral::gpu::anonymous_namespace{device.cpp}::DebugNameOf (const wchar_t *name)
void bicameral::gpu::anonymous_namespace{device.cpp}::LogBreadcrumbNode (const D3D12_AUTO_BREADCRUMB_NODE1 &node)
void bicameral::gpu::anonymous_namespace{device.cpp}::LogAllocations (std::string_view title, const D3D12_DRED_ALLOCATION_NODE1 *node)
const char * bicameral::gpu::AdapterKindName (AdapterKind kind)
DeviceOptions bicameral::gpu::DefaultDeviceOptions ()
DeviceRemovedReport bicameral::gpu::LogDeviceRemoved (ID3D12Device *device)

Variables

constexpr D3D_FEATURE_LEVEL bicameral::gpu::anonymous_namespace{device.cpp}::HARDWARE_FEATURE_LEVEL = D3D_FEATURE_LEVEL_12_2
constexpr D3D_FEATURE_LEVEL bicameral::gpu::anonymous_namespace{device.cpp}::WARP_FEATURE_LEVEL = D3D_FEATURE_LEVEL_11_0
constexpr uint32_t bicameral::gpu::anonymous_namespace{device.cpp}::BREADCRUMB_CONTEXT_BEFORE = 3
constexpr uint32_t bicameral::gpu::anonymous_namespace{device.cpp}::BREADCRUMB_CONTEXT_AFTER = 3
constexpr int bicameral::gpu::anonymous_namespace{device.cpp}::MAX_LOGGED_ALLOCATIONS = 8