Rise
The Vieneo Province
Loading...
Searching...
No Matches
Rendering::Device11 Class Reference

#include <Device11.h>

Collaboration diagram for Rendering::Device11:
[legend]

Public Member Functions

HRESULT Create (const DeviceOptions11 &options={})
HRESULT AttachWindow (HWND window, UINT width, UINT height, UINT requestedSamples)
HRESULT Resize (UINT width, UINT height, UINT requestedSamples)
HRESULT Present (UINT syncInterval=1)
HRESULT SetFullscreen (bool fullscreen)
void Reset ()
 ~Device11 ()
 Device11 ()=default
 Device11 (const Device11 &)=delete
Device11 & operator= (const Device11 &)=delete
bool SupportsSamples (UINT count) const
UINT SelectSamples (UINT requested) const
HRESULT CheckCloudFormats () const
void BindScene ()
void BindSceneWithReadOnlyDepth ()
void UnbindShaderResources ()
ID3D11Device * Device () const
ID3D11DeviceContext * Context () const
IDXGISwapChain1 * SwapChain () const
ID3D11RenderTargetView * SceneTarget () const
ID3D11Texture2D * SceneColor () const
const SceneDepth11 & Depth () const
D3D_FEATURE_LEVEL FeatureLevel () const
bool DebugLayerEnabled () const
bool Suspended () const
HRESULT RemovalReason () const
const std::string & Status () const
const DXGI_ADAPTER_DESC1 & Adapter () const

Private Member Functions

HRESULT CreateTargets (UINT width, UINT height, UINT samples)
HRESULT Fail (const char *stage, HRESULT hr)
void ReleaseTargets ()

Private Attributes

Microsoft::WRL::ComPtr< ID3D11Device > device
Microsoft::WRL::ComPtr< ID3D11DeviceContext > context
Microsoft::WRL::ComPtr< IDXGISwapChain1 > swapChain
Microsoft::WRL::ComPtr< ID3D11Texture2D > backBuffer
Microsoft::WRL::ComPtr< ID3D11Texture2D > sceneColor
Microsoft::WRL::ComPtr< ID3D11RenderTargetView > sceneTarget
SceneDepth11 depth
DXGI_ADAPTER_DESC1 adapterDescription {}
D3D_FEATURE_LEVEL featureLevel = D3D_FEATURE_LEVEL_11_0
UINT width = 0
UINT height = 0
UINT sampleCount = 0
bool debugEnabled = false
bool suspended = false
std::string status = "D3D11: not initialized"

Detailed Description

Definition at line 38 of file Device11.h.

Constructor & Destructor Documentation

◆ ~Device11()

Rendering::Device11::~Device11 ( )
inline

Definition at line 47 of file Device11.h.

Here is the call graph for this function:

◆ Device11() [1/2]

Rendering::Device11::Device11 ( )
default
Here is the caller graph for this function:

◆ Device11() [2/2]

Rendering::Device11::Device11 ( const Device11 & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ Adapter()

const DXGI_ADAPTER_DESC1 & Rendering::Device11::Adapter ( ) const
inline

Definition at line 76 of file Device11.h.

◆ AttachWindow()

HRESULT Rendering::Device11::AttachWindow ( HWND window,
UINT width,
UINT height,
UINT requestedSamples )

Definition at line 142 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BindScene()

void Rendering::Device11::BindScene ( )

Definition at line 226 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BindSceneWithReadOnlyDepth()

void Rendering::Device11::BindSceneWithReadOnlyDepth ( )

Definition at line 236 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckCloudFormats()

HRESULT Rendering::Device11::CheckCloudFormats ( ) const

Definition at line 131 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Context()

ID3D11DeviceContext * Rendering::Device11::Context ( ) const
inline

Definition at line 66 of file Device11.h.

Here is the caller graph for this function:

◆ Create()

HRESULT Rendering::Device11::Create ( const DeviceOptions11 & options = {})

Definition at line 84 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateTargets()

HRESULT Rendering::Device11::CreateTargets ( UINT width,
UINT height,
UINT samples )
private

Definition at line 186 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DebugLayerEnabled()

bool Rendering::Device11::DebugLayerEnabled ( ) const
inline

Definition at line 72 of file Device11.h.

◆ Depth()

const SceneDepth11 & Rendering::Device11::Depth ( ) const
inline

Definition at line 70 of file Device11.h.

Here is the caller graph for this function:

◆ Device()

ID3D11Device * Rendering::Device11::Device ( ) const
inline

Definition at line 65 of file Device11.h.

Here is the caller graph for this function:

◆ Fail()

HRESULT Rendering::Device11::Fail ( const char * stage,
HRESULT hr )
private

Definition at line 73 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FeatureLevel()

D3D_FEATURE_LEVEL Rendering::Device11::FeatureLevel ( ) const
inline

Definition at line 71 of file Device11.h.

◆ operator=()

Device11 & Rendering::Device11::operator= ( const Device11 & )
delete
Here is the call graph for this function:

◆ Present()

HRESULT Rendering::Device11::Present ( UINT syncInterval = 1)

Definition at line 243 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReleaseTargets()

void Rendering::Device11::ReleaseTargets ( )
private

Definition at line 175 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemovalReason()

HRESULT Rendering::Device11::RemovalReason ( ) const

Definition at line 268 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Reset()

void Rendering::Device11::Reset ( )

Definition at line 273 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Resize()

HRESULT Rendering::Device11::Resize ( UINT width,
UINT height,
UINT requestedSamples )

Definition at line 210 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SceneColor()

ID3D11Texture2D * Rendering::Device11::SceneColor ( ) const
inline

Definition at line 69 of file Device11.h.

◆ SceneTarget()

ID3D11RenderTargetView * Rendering::Device11::SceneTarget ( ) const
inline

Definition at line 68 of file Device11.h.

Here is the caller graph for this function:

◆ SelectSamples()

UINT Rendering::Device11::SelectSamples ( UINT requested) const

Definition at line 124 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetFullscreen()

HRESULT Rendering::Device11::SetFullscreen ( bool fullscreen)

Definition at line 261 of file Device11.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Status()

const std::string & Rendering::Device11::Status ( ) const
inline

Definition at line 75 of file Device11.h.

Here is the caller graph for this function:

◆ SupportsSamples()

bool Rendering::Device11::SupportsSamples ( UINT count) const

Definition at line 112 of file Device11.cpp.

Here is the caller graph for this function:

◆ Suspended()

bool Rendering::Device11::Suspended ( ) const
inline

Definition at line 73 of file Device11.h.

Here is the caller graph for this function:

◆ SwapChain()

IDXGISwapChain1 * Rendering::Device11::SwapChain ( ) const
inline

Definition at line 67 of file Device11.h.

Here is the caller graph for this function:

◆ UnbindShaderResources()

void Rendering::Device11::UnbindShaderResources ( )

Definition at line 163 of file Device11.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ adapterDescription

DXGI_ADAPTER_DESC1 Rendering::Device11::adapterDescription {}
private

Definition at line 88 of file Device11.h.

◆ backBuffer

Microsoft::WRL::ComPtr<ID3D11Texture2D> Rendering::Device11::backBuffer
private

Definition at line 85 of file Device11.h.

◆ context

Microsoft::WRL::ComPtr<ID3D11DeviceContext> Rendering::Device11::context
private

Definition at line 83 of file Device11.h.

◆ debugEnabled

bool Rendering::Device11::debugEnabled = false
private

Definition at line 91 of file Device11.h.

◆ depth

SceneDepth11 Rendering::Device11::depth
private

Definition at line 87 of file Device11.h.

◆ device

Microsoft::WRL::ComPtr<ID3D11Device> Rendering::Device11::device
private

Definition at line 82 of file Device11.h.

◆ featureLevel

D3D_FEATURE_LEVEL Rendering::Device11::featureLevel = D3D_FEATURE_LEVEL_11_0
private

Definition at line 89 of file Device11.h.

◆ height

UINT Rendering::Device11::height = 0
private

Definition at line 90 of file Device11.h.

◆ sampleCount

UINT Rendering::Device11::sampleCount = 0
private

Definition at line 90 of file Device11.h.

◆ sceneColor

Microsoft::WRL::ComPtr<ID3D11Texture2D> Rendering::Device11::sceneColor
private

Definition at line 85 of file Device11.h.

◆ sceneTarget

Microsoft::WRL::ComPtr<ID3D11RenderTargetView> Rendering::Device11::sceneTarget
private

Definition at line 86 of file Device11.h.

◆ status

std::string Rendering::Device11::status = "D3D11: not initialized"
private

Definition at line 92 of file Device11.h.

◆ suspended

bool Rendering::Device11::suspended = false
private

Definition at line 91 of file Device11.h.

◆ swapChain

Microsoft::WRL::ComPtr<IDXGISwapChain1> Rendering::Device11::swapChain
private

Definition at line 84 of file Device11.h.

◆ width

UINT Rendering::Device11::width = 0
private

Definition at line 90 of file Device11.h.


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