![]() |
Rise
The Vieneo Province
|
#include <Device11.h>
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" |
Definition at line 38 of file Device11.h.
|
inline |
|
default |
|
delete |
|
inline |
Definition at line 76 of file Device11.h.
| HRESULT Rendering::Device11::AttachWindow | ( | HWND | window, |
| UINT | width, | ||
| UINT | height, | ||
| UINT | requestedSamples ) |
Definition at line 142 of file Device11.cpp.
| void Rendering::Device11::BindScene | ( | ) |
Definition at line 226 of file Device11.cpp.
| void Rendering::Device11::BindSceneWithReadOnlyDepth | ( | ) |
Definition at line 236 of file Device11.cpp.
| HRESULT Rendering::Device11::CheckCloudFormats | ( | ) | const |
Definition at line 131 of file Device11.cpp.
|
inline |
| HRESULT Rendering::Device11::Create | ( | const DeviceOptions11 & | options = {} | ) |
Definition at line 84 of file Device11.cpp.
|
private |
Definition at line 186 of file Device11.cpp.
|
inline |
Definition at line 72 of file Device11.h.
|
inline |
|
inline |
Definition at line 73 of file Device11.cpp.
|
inline |
Definition at line 71 of file Device11.h.
| HRESULT Rendering::Device11::Present | ( | UINT | syncInterval = 1 | ) |
Definition at line 243 of file Device11.cpp.
|
private |
Definition at line 175 of file Device11.cpp.
| HRESULT Rendering::Device11::RemovalReason | ( | ) | const |
Definition at line 268 of file Device11.cpp.
| void Rendering::Device11::Reset | ( | ) |
Definition at line 273 of file Device11.cpp.
| HRESULT Rendering::Device11::Resize | ( | UINT | width, |
| UINT | height, | ||
| UINT | requestedSamples ) |
Definition at line 210 of file Device11.cpp.
|
inline |
Definition at line 69 of file Device11.h.
|
inline |
| UINT Rendering::Device11::SelectSamples | ( | UINT | requested | ) | const |
Definition at line 124 of file Device11.cpp.
| HRESULT Rendering::Device11::SetFullscreen | ( | bool | fullscreen | ) |
Definition at line 261 of file Device11.cpp.
|
inline |
| bool Rendering::Device11::SupportsSamples | ( | UINT | count | ) | const |
|
inline |
|
inline |
| void Rendering::Device11::UnbindShaderResources | ( | ) |
|
private |
Definition at line 88 of file Device11.h.
|
private |
Definition at line 85 of file Device11.h.
|
private |
Definition at line 83 of file Device11.h.
|
private |
Definition at line 91 of file Device11.h.
|
private |
Definition at line 87 of file Device11.h.
|
private |
Definition at line 82 of file Device11.h.
|
private |
Definition at line 89 of file Device11.h.
|
private |
Definition at line 90 of file Device11.h.
|
private |
Definition at line 90 of file Device11.h.
|
private |
Definition at line 85 of file Device11.h.
|
private |
Definition at line 86 of file Device11.h.
|
private |
Definition at line 92 of file Device11.h.
|
private |
Definition at line 91 of file Device11.h.
|
private |
Definition at line 84 of file Device11.h.
|
private |
Definition at line 90 of file Device11.h.