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

#include <device.h>

Public Member Functions

 Device ()
 
 ~Device ()
 
void Create ()
 
void Create (const Adapter &adapter)
 
const AdapterGetAdapter () const
 
ID3D12Device * Get () const
 

Private Attributes

Adapter adapter_
 
ID3D12Device * device_
 

Detailed Description

Wraps the ID3D12Device.

This object manages the ID3D12Device object. It automatically creates and deletes it.

Constructor & Destructor Documentation

blowbox::Device::Device ( )

Constructs a Device.

blowbox::Device::~Device ( )

Destructs a Device.

Member Function Documentation

void blowbox::Device::Create ( )

Creates the actual Device.

Remarks
Because no Adapter has to be provided for this function, the Device will use the default Adapter.
void blowbox::Device::Create ( const Adapter adapter)

Creates the actual Device.

Parameters
[in]adapterThe Adapter the Device should be created with.
ID3D12Device * blowbox::Device::Get ( ) const
Returns
The underlying ID3D12Device.
const Adapter & blowbox::Device::GetAdapter ( ) const
Returns
The underlying Adapter.

Member Data Documentation

Adapter blowbox::Device::adapter_
private

The underlying Adapter that was used to construct the Device.

ID3D12Device* blowbox::Device::device_
private

The underlying ID3D12Device.


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