coastline 0.0.4
Loading...
Searching...
No Matches
D3DDeviceNode Class Reference

A Direct3D device of a driver. More...

#include <renderer.h>

Public Member Functions

GUID * GetGuid ()
const D3DDEVICEDESC * GetHardwareDescription () const
const D3DDEVICEDESC * GetSoftwareDescription () const
D3DDeviceNode * GetPrevious () const
D3DDeviceNode * GetNext () const
void SetPrevious (D3DDeviceNode *device)
 Link the preceding device.
void SetNext (D3DDeviceNode *device)
 Link the following device.
void ReleaseD3DDeviceNode ()
 Free the texture formats, the description, and the name of the device, and unlink it, before it is freed.
bool CompareD3DDeviceGuid (const GUID *pGuid)
 Whether a GUID names the device, a device that was read alone.
 D3DDeviceNode ()
 Start a device without texts, with empty descriptions.
HRESULT InitD3DDeviceNode (GUID *pGuid, LPSTR pszNewDescription, LPSTR pszNewName, D3DDEVICEDESC *pHardwareDesc, D3DDEVICEDESC *pSoftwareDesc)
 Read a device Direct3D reports.
HRESULT EnqueueTextureFormatNode (DisplayMode *pFormat)
 Add a texture format to the end of the formats of the device.
bool IsHardwareDevice ()
 Whether the device is a device of the hardware, one with a colour model of its own.
HRESULT EnumerateDeviceTextureFormats (IDirect3DDevice2 *pD3DDevice)
 Find the texture formats a device created from the node supports.

Detailed Description

A Direct3D device of a driver.

The layout after softwareDesc is not recovered yet.

Constructor & Destructor Documentation

◆ D3DDeviceNode()

D3DDeviceNode::D3DDeviceNode ( )
inline

Start a device without texts, with empty descriptions.

Member Function Documentation

◆ GetGuid()

GUID * D3DDeviceNode::GetGuid ( )
inline
Returns
The device's GUID.

◆ GetHardwareDescription()

const D3DDEVICEDESC * D3DDeviceNode::GetHardwareDescription ( ) const
inline
Returns
The device's hardware capabilities.

◆ GetSoftwareDescription()

const D3DDEVICEDESC * D3DDeviceNode::GetSoftwareDescription ( ) const
inline
Returns
The device's software capabilities.

◆ GetPrevious()

D3DDeviceNode * D3DDeviceNode::GetPrevious ( ) const
inline
Returns
The previous device in the list.

◆ GetNext()

D3DDeviceNode * D3DDeviceNode::GetNext ( ) const
inline
Returns
The next device in the list.

◆ SetPrevious()

void D3DDeviceNode::SetPrevious ( D3DDeviceNode * device)
inline

Link the preceding device.

◆ SetNext()

void D3DDeviceNode::SetNext ( D3DDeviceNode * device)
inline

Link the following device.

◆ ReleaseD3DDeviceNode()

void D3DDeviceNode::ReleaseD3DDeviceNode ( )

Free the texture formats, the description, and the name of the device, and unlink it, before it is freed.

Ghidra address:
BRD3D: 0x1001aee0

◆ CompareD3DDeviceGuid()

bool D3DDeviceNode::CompareD3DDeviceGuid ( const GUID * pGuid)

Whether a GUID names the device, a device that was read alone.

Parameters
pGuidThe GUID, or nullptr.
Returns
Whether the GUID names the device.
Ghidra address:
BRD3D: 0x1001ada0

◆ InitD3DDeviceNode()

HRESULT D3DDeviceNode::InitD3DDeviceNode ( GUID * pGuid,
LPSTR pszNewDescription,
LPSTR pszNewName,
D3DDEVICEDESC * pHardwareDesc,
D3DDEVICEDESC * pSoftwareDesc )

Read a device Direct3D reports.

Parameters
pGuidThe GUID of the device.
pszNewDescriptionThe description of the device.
pszNewNameThe name of the device.
pHardwareDescWhat the hardware of the device does.
pSoftwareDescWhat the emulation of the device does.
Returns
S_OK, or an error for a device that is not read.
Ghidra address:
BRD3D: 0x1001ade0

◆ EnqueueTextureFormatNode()

HRESULT D3DDeviceNode::EnqueueTextureFormatNode ( DisplayMode * pFormat)

Add a texture format to the end of the formats of the device.

Parameters
pFormatThe format.
Returns
S_OK, or E_INVALIDARG without a format.
Ghidra address:
BRD3D: 0x1001b030

◆ IsHardwareDevice()

bool D3DDeviceNode::IsHardwareDevice ( )

Whether the device is a device of the hardware, one with a colour model of its own.

Returns
Whether the device is a device of the hardware.
Ghidra address:
BRD3D: 0x1001ad90

◆ EnumerateDeviceTextureFormats()

HRESULT D3DDeviceNode::EnumerateDeviceTextureFormats ( IDirect3DDevice2 * pD3DDevice)

Find the texture formats a device created from the node supports.

Parameters
pD3DDeviceThe device created.
Returns
S_OK, or the error of Direct3D.
Ghidra address:
BRD3D: 0x1001af20

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