#include <GteDX11Engine.h>
Public Member Functions | |
void | BeginTimer (DX11PerformanceCounter &counter) |
virtual bool | BindProgram (std::shared_ptr< ComputeProgram > const &program) override |
DX11Texture2 * | BindTexture (std::shared_ptr< Texture2 > const &texture, ID3D11Texture2D *dxTexture, ID3D11ShaderResourceView *dxSRView) |
virtual void | ClearBuffers () override |
virtual void | ClearColorBuffer () override |
virtual void | ClearDepthBuffer () override |
virtual void | ClearStencilBuffer () override |
virtual bool | CopyCpuToGpu (std::shared_ptr< Buffer > const &buffer) override |
virtual bool | CopyCpuToGpu (std::shared_ptr< TextureSingle > const &texture) override |
virtual bool | CopyCpuToGpu (std::shared_ptr< TextureSingle > const &texture, unsigned int level) override |
virtual bool | CopyCpuToGpu (std::shared_ptr< TextureArray > const &textureArray) override |
virtual bool | CopyCpuToGpu (std::shared_ptr< TextureArray > const &textureArray, unsigned int item, unsigned int level) override |
virtual bool | CopyGpuToCpu (std::shared_ptr< Buffer > const &buffer) override |
virtual bool | CopyGpuToCpu (std::shared_ptr< TextureSingle > const &texture) override |
virtual bool | CopyGpuToCpu (std::shared_ptr< TextureSingle > const &texture, unsigned int level) override |
virtual bool | CopyGpuToCpu (std::shared_ptr< TextureArray > const &textureArray) override |
virtual bool | CopyGpuToCpu (std::shared_ptr< TextureArray > const &textureArray, unsigned int item, unsigned int level) override |
virtual void | CopyGpuToGpu (std::shared_ptr< Buffer > const &buffer0, std::shared_ptr< Buffer > const &buffer1) override |
virtual void | CopyGpuToGpu (std::shared_ptr< TextureSingle > const &texture0, std::shared_ptr< TextureSingle > const &texture1) override |
virtual void | CopyGpuToGpu (std::shared_ptr< TextureSingle > const &texture0, std::shared_ptr< TextureSingle > const &texture1, unsigned int level) override |
virtual void | CopyGpuToGpu (std::shared_ptr< TextureArray > const &textureArray0, std::shared_ptr< TextureArray > const &textureArray1) override |
virtual void | CopyGpuToGpu (std::shared_ptr< TextureArray > const &textureArray0, std::shared_ptr< TextureArray > const &textureArray1, unsigned int item, unsigned int level) override |
virtual void | Disable (std::shared_ptr< DrawTarget > const &target) override |
virtual void | DisplayColorBuffer (unsigned int syncInterval) override |
DX11Engine (D3D_FEATURE_LEVEL minFeatureLevel=D3D_FEATURE_LEVEL_11_0) | |
DX11Engine (IDXGIAdapter *adapter, D3D_DRIVER_TYPE driverType, HMODULE softwareModule, UINT flags, D3D_FEATURE_LEVEL minFeatureLevel) | |
DX11Engine (HWND handle, UINT xSize, UINT ySize, D3D_FEATURE_LEVEL minFeatureLevel=D3D_FEATURE_LEVEL_11_0) | |
DX11Engine (IDXGIAdapter *adapter, HWND handle, UINT xSize, UINT ySize, D3D_DRIVER_TYPE driverType, HMODULE softwareModule, UINT flags, D3D_FEATURE_LEVEL minFeatureLevel) | |
virtual void | Enable (std::shared_ptr< DrawTarget > const &target) override |
void | EndTimer (DX11PerformanceCounter &counter) |
virtual void | Execute (std::shared_ptr< ComputeProgram > const &program, unsigned int numXGroups, unsigned int numYGroups, unsigned int numZGroups) override |
void | ExitFullscreen () |
virtual void | Flush () override |
IDXGIAdapter * | GetAdapter () const |
virtual void | GetDepthRange (float &zmin, float &zmax) const override |
ID3D11Device * | GetDevice () const |
D3D_DRIVER_TYPE | GetDriverType () const |
D3D_FEATURE_LEVEL | GetFeatureLevel () const |
UINT | GetFlags () const |
ID3D11DeviceContext * | GetImmediate () const |
D3D_FEATURE_LEVEL | GetMinFeatureLevel () const |
virtual bool | GetNumActiveElements (std::shared_ptr< StructuredBuffer > const &buffer) override |
HMODULE | GetSoftwareModule () const |
virtual void | GetViewport (int &x, int &y, int &w, int &h) const override |
bool | IsFullscreen (DXGIOutput const &output) const |
D3D11_MAPPED_SUBRESOURCE | MapForWrite (std::shared_ptr< Resource > const &resource, unsigned int sri) |
virtual bool | Resize (unsigned int w, unsigned int h) override |
virtual void | SetBlendState (std::shared_ptr< BlendState > const &state) override |
virtual void | SetDepthRange (float zmin, float zmax) override |
virtual void | SetDepthStencilState (std::shared_ptr< DepthStencilState > const &state) override |
bool | SetFullscreen (DXGIOutput const &output, bool fullscreen) |
virtual void | SetRasterizerState (std::shared_ptr< RasterizerState > const &state) override |
virtual void | SetViewport (int x, int y, int w, int h) override |
DX11GraphicsObject * | Share (std::shared_ptr< Texture2 > const &texture, DX11Engine *engine) |
void | Unmap (std::shared_ptr< Resource > const &resource, unsigned int sri) |
virtual bool | Update (std::shared_ptr< Buffer > const &buffer) override |
virtual bool | Update (std::shared_ptr< TextureSingle > const &texture) override |
virtual bool | Update (std::shared_ptr< TextureSingle > const &texture, unsigned int level) override |
virtual bool | Update (std::shared_ptr< TextureArray > const &textureArray) override |
virtual bool | Update (std::shared_ptr< TextureArray > const &textureArray, unsigned int item, unsigned int level) override |
virtual void | WaitForFinish () override |
virtual | ~DX11Engine () |
Public Member Functions inherited from gte::GraphicsEngine | |
void | AllowOcclusionQuery (bool allow) |
GEObject * | Bind (std::shared_ptr< GraphicsObject > const &object) |
GEDrawTarget * | Bind (std::shared_ptr< DrawTarget > const &target) |
uint64_t | Draw (Visual *visual) |
uint64_t | Draw (std::vector< Visual * > const &visuals) |
uint64_t | Draw (std::shared_ptr< Visual > const &visual) |
uint64_t | Draw (std::vector< std::shared_ptr< Visual >> const &visuals) |
uint64_t | Draw (int x, int y, std::array< float, 4 > const &color, std::string const &message) |
virtual uint64_t | Draw (std::shared_ptr< OverlayEffect > const &overlay) override |
GEObject * | Get (std::shared_ptr< GraphicsObject > const &object) const |
GEDrawTarget * | Get (std::shared_ptr< DrawTarget > const &target) const |
void | GetTotalAllocation (size_t &numBytes, size_t &numObjects) const |
virtual void | SetFont (std::shared_ptr< Font > const &font) override |
bool | Unbind (std::shared_ptr< GraphicsObject > const &object) |
bool | Unbind (std::shared_ptr< DrawTarget > const &target) |
void | WarnOnNonemptyBridges (bool warn) |
virtual | ~GraphicsEngine () |
Public Member Functions inherited from gte::BaseEngine | |
std::shared_ptr< BlendState > const & | GetBlendState () const |
std::array< float, 4 > const & | GetClearColor () const |
float | GetClearDepth () const |
unsigned int | GetClearStencil () const |
std::shared_ptr< BlendState > const & | GetDefaultBlendState () const |
std::shared_ptr< DepthStencilState > const & | GetDefaultDepthStencilState () const |
std::shared_ptr< Font > const & | GetDefaultFont () const |
std::shared_ptr< RasterizerState > const & | GetDefaultRasterizerState () const |
std::shared_ptr< DepthStencilState > const & | GetDepthStencilState () const |
std::shared_ptr< Font > const & | GetFont () const |
std::shared_ptr< RasterizerState > const & | GetRasterizerState () const |
void | SetClearColor (std::array< float, 4 > const &clearColor) |
void | SetClearDepth (float clearDepth) |
void | SetClearStencil (unsigned int clearStencil) |
void | SetDefaultBlendState () |
void | SetDefaultDepthStencilState () |
void | SetDefaultFont () |
void | SetDefaultRasterizerState () |
virtual | ~BaseEngine () |
Private Attributes | |
ID3D11DepthStencilView * | mActiveDS |
std::array< ID3D11RenderTargetView *, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT > | mActiveRT |
IDXGIAdapter * | mAdapter |
ID3D11Texture2D * | mColorBuffer |
ID3D11RenderTargetView * | mColorView |
ID3D11Texture2D * | mDepthStencilBuffer |
ID3D11DepthStencilView * | mDepthStencilView |
ID3D11Device * | mDevice |
D3D_DRIVER_TYPE | mDriverType |
D3D_FEATURE_LEVEL | mFeatureLevel |
UINT | mFlags |
std::map< std::wstring, bool > | mFullscreenState |
ID3D11DeviceContext * | mImmediate |
D3D_FEATURE_LEVEL | mMinFeatureLevel |
unsigned int | mNumActiveRTs |
ID3D11DepthStencilView * | mSaveDS |
std::array< ID3D11RenderTargetView *, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT > | mSaveRT |
D3D11_VIEWPORT | mSaveViewport |
HMODULE | mSoftwareModule |
IDXGISwapChain * | mSwapChain |
D3D11_VIEWPORT | mViewport |
ID3D11Query * | mWaitQuery |
Definition at line 26 of file GteDX11Engine.h.
|
virtual |
Definition at line 40 of file GteDX11Engine.cpp.
DX11Engine::DX11Engine | ( | D3D_FEATURE_LEVEL | minFeatureLevel = D3D_FEATURE_LEVEL_11_0 | ) |
Definition at line 94 of file GteDX11Engine.cpp.
DX11Engine::DX11Engine | ( | IDXGIAdapter * | adapter, |
D3D_DRIVER_TYPE | driverType, | ||
HMODULE | softwareModule, | ||
UINT | flags, | ||
D3D_FEATURE_LEVEL | minFeatureLevel | ||
) |
Definition at line 100 of file GteDX11Engine.cpp.
DX11Engine::DX11Engine | ( | HWND | handle, |
UINT | xSize, | ||
UINT | ySize, | ||
D3D_FEATURE_LEVEL | minFeatureLevel = D3D_FEATURE_LEVEL_11_0 |
||
) |
Definition at line 107 of file GteDX11Engine.cpp.
DX11Engine::DX11Engine | ( | IDXGIAdapter * | adapter, |
HWND | handle, | ||
UINT | xSize, | ||
UINT | ySize, | ||
D3D_DRIVER_TYPE | driverType, | ||
HMODULE | softwareModule, | ||
UINT | flags, | ||
D3D_FEATURE_LEVEL | minFeatureLevel | ||
) |
Definition at line 124 of file GteDX11Engine.cpp.
|
private |
Definition at line 849 of file GteDX11Engine.cpp.
void DX11Engine::BeginTimer | ( | DX11PerformanceCounter & | counter | ) |
Definition at line 301 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1789 of file GteDX11Engine.cpp.
DX11Texture2 * DX11Engine::BindTexture | ( | std::shared_ptr< Texture2 > const & | texture, |
ID3D11Texture2D * | dxTexture, | ||
ID3D11ShaderResourceView * | dxSRView | ||
) |
Definition at line 1513 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1378 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1334 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1351 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1364 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1600 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1612 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1624 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1637 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1650 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1664 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1676 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1688 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1701 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1714 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1728 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1737 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1746 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1757 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1766 of file GteDX11Engine.cpp.
Definition at line 610 of file GteDX11Engine.cpp.
|
private |
Definition at line 483 of file GteDX11Engine.cpp.
|
private |
Definition at line 714 of file GteDX11Engine.cpp.
|
private |
Definition at line 415 of file GteDX11Engine.cpp.
Definition at line 545 of file GteDX11Engine.cpp.
|
private |
Definition at line 758 of file GteDX11Engine.cpp.
|
private |
Definition at line 723 of file GteDX11Engine.cpp.
|
private |
Definition at line 734 of file GteDX11Engine.cpp.
|
private |
Definition at line 739 of file GteDX11Engine.cpp.
|
private |
Definition at line 948 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1486 of file GteDX11Engine.cpp.
|
private |
Definition at line 984 of file GteDX11Engine.cpp.
|
private |
Definition at line 1108 of file GteDX11Engine.cpp.
|
private |
Definition at line 1243 of file GteDX11Engine.cpp.
|
private |
Definition at line 1061 of file GteDX11Engine.cpp.
|
private |
Definition at line 925 of file GteDX11Engine.cpp.
|
private |
Definition at line 1017 of file GteDX11Engine.cpp.
|
private |
Definition at line 1202 of file GteDX11Engine.cpp.
|
private |
Definition at line 1155 of file GteDX11Engine.cpp.
Implements gte::BaseEngine.
Definition at line 1401 of file GteDX11Engine.cpp.
|
private |
Definition at line 776 of file GteDX11Engine.cpp.
|
overrideprivatevirtual |
Implements gte::GraphicsEngine.
Definition at line 1852 of file GteDX11Engine.cpp.
|
private |
Definition at line 936 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1479 of file GteDX11Engine.cpp.
|
private |
Definition at line 960 of file GteDX11Engine.cpp.
|
private |
Definition at line 1077 of file GteDX11Engine.cpp.
|
private |
Definition at line 1219 of file GteDX11Engine.cpp.
|
private |
Definition at line 1026 of file GteDX11Engine.cpp.
|
private |
Definition at line 885 of file GteDX11Engine.cpp.
|
private |
Definition at line 993 of file GteDX11Engine.cpp.
|
private |
Definition at line 1171 of file GteDX11Engine.cpp.
|
private |
Definition at line 1124 of file GteDX11Engine.cpp.
|
private |
Definition at line 866 of file GteDX11Engine.cpp.
void DX11Engine::EndTimer | ( | DX11PerformanceCounter & | counter | ) |
Definition at line 316 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1803 of file GteDX11Engine.cpp.
void DX11Engine::ExitFullscreen | ( | ) |
Definition at line 285 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1844 of file GteDX11Engine.cpp.
|
inline |
Definition at line 289 of file GteDX11Engine.h.
|
overridevirtual |
Implements gte::BaseEngine.
Definition at line 1292 of file GteDX11Engine.cpp.
|
inline |
Definition at line 314 of file GteDX11Engine.h.
|
inline |
Definition at line 294 of file GteDX11Engine.h.
|
inline |
Definition at line 324 of file GteDX11Engine.h.
|
inline |
Definition at line 304 of file GteDX11Engine.h.
|
inline |
Definition at line 319 of file GteDX11Engine.h.
|
inline |
Definition at line 309 of file GteDX11Engine.h.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1777 of file GteDX11Engine.cpp.
|
inline |
Definition at line 299 of file GteDX11Engine.h.
Implements gte::BaseEngine.
Definition at line 1268 of file GteDX11Engine.cpp.
|
private |
Definition at line 339 of file GteDX11Engine.cpp.
bool DX11Engine::IsFullscreen | ( | DXGIOutput const & | output | ) | const |
Definition at line 206 of file GteDX11Engine.cpp.
D3D11_MAPPED_SUBRESOURCE DX11Engine::MapForWrite | ( | std::shared_ptr< Resource > const & | resource, |
unsigned int | sri | ||
) |
Definition at line 188 of file GteDX11Engine.cpp.
Implements gte::BaseEngine.
Definition at line 1303 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::BaseEngine.
Definition at line 1407 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::BaseEngine.
Definition at line 1281 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::BaseEngine.
Definition at line 1431 of file GteDX11Engine.cpp.
bool DX11Engine::SetFullscreen | ( | DXGIOutput const & | output, |
bool | fullscreen | ||
) |
Definition at line 227 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::BaseEngine.
Definition at line 1455 of file GteDX11Engine.cpp.
Implements gte::BaseEngine.
Definition at line 1255 of file GteDX11Engine.cpp.
DX11GraphicsObject * DX11Engine::Share | ( | std::shared_ptr< Texture2 > const & | texture, |
DX11Engine * | engine | ||
) |
Definition at line 143 of file GteDX11Engine.cpp.
Definition at line 200 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1536 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1548 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1560 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1573 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1586 of file GteDX11Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1824 of file GteDX11Engine.cpp.
|
private |
Definition at line 156 of file GteDX11Engine.h.
|
private |
Definition at line 155 of file GteDX11Engine.h.
|
private |
Definition at line 134 of file GteDX11Engine.h.
|
private |
Definition at line 147 of file GteDX11Engine.h.
|
private |
Definition at line 148 of file GteDX11Engine.h.
|
private |
Definition at line 149 of file GteDX11Engine.h.
|
private |
Definition at line 150 of file GteDX11Engine.h.
|
private |
Definition at line 141 of file GteDX11Engine.h.
|
private |
Definition at line 135 of file GteDX11Engine.h.
|
private |
Definition at line 143 of file GteDX11Engine.h.
|
private |
Definition at line 137 of file GteDX11Engine.h.
|
private |
Definition at line 171 of file GteDX11Engine.h.
|
private |
Definition at line 142 of file GteDX11Engine.h.
|
private |
Definition at line 138 of file GteDX11Engine.h.
|
private |
Definition at line 154 of file GteDX11Engine.h.
|
private |
Definition at line 159 of file GteDX11Engine.h.
|
private |
Definition at line 158 of file GteDX11Engine.h.
|
private |
Definition at line 157 of file GteDX11Engine.h.
|
private |
Definition at line 136 of file GteDX11Engine.h.
|
private |
Definition at line 146 of file GteDX11Engine.h.
|
private |
Definition at line 151 of file GteDX11Engine.h.
|
private |
Definition at line 164 of file GteDX11Engine.h.