Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
blowbox::Adapter Struct Reference

#include <adapter.h>

Public Member Functions

 Adapter ()
 
 Adapter (IDXGIAdapter1 *dxgi_adapter)
 

Static Public Member Functions

static Vector< AdapterFindAvailableAdapters (FindAdapterFlag find_adapter_flags)
 

Public Attributes

IDXGIAdapter4 * dxgi_adapter
 
String name
 
DXGI_ADAPTER_FLAG3 flags
 
unsigned long long video_memory
 
unsigned long long system_memory
 
unsigned long long shared_system_memory
 
LUID adapter_luid
 

Detailed Description

Wraps an IDXGIAdapter.

This struct wraps all data for Adapters and makes it easily available to the user to read.

Constructor & Destructor Documentation

blowbox::Adapter::Adapter ( )

Constructs an empty Adapter.

blowbox::Adapter::Adapter ( IDXGIAdapter1 *  dxgi_adapter)

Constructs an Adapter.

Parameters
[in]dxgi_adapterThe actual adapter this Adapter wraps.

Member Function Documentation

Vector< Adapter > blowbox::Adapter::FindAvailableAdapters ( FindAdapterFlag  find_adapter_flags)
static

Find a list of available adapters.

Parameters
[in]find_adapter_flagsAny find adapter flags you might want to pass in
Returns
A list of adapters that can be used to create the Device with.

Member Data Documentation

LUID blowbox::Adapter::adapter_luid

The LUID of this Adapter.

IDXGIAdapter4* blowbox::Adapter::dxgi_adapter

The underlying IDXGIAdapter.

DXGI_ADAPTER_FLAG3 blowbox::Adapter::flags

Any flags that are set on the Adapter.

String blowbox::Adapter::name

The name of this Adapter.

unsigned long long blowbox::Adapter::shared_system_memory

How much shared system memory is available on this Adapter.

unsigned long long blowbox::Adapter::system_memory

How much system memory is available on this Adapter.

unsigned long long blowbox::Adapter::video_memory

How much video memory is available on this Adapter.


The documentation for this struct was generated from the following files: