Public Member Functions | Private Member Functions | Private Attributes | List of all members
gte::DX11Engine Class Reference

#include <GteDX11Engine.h>

Inheritance diagram for gte::DX11Engine:
Inheritance graph
[legend]

Public Member Functions

void BeginTimer (DX11PerformanceCounter &counter)
 
virtual bool BindProgram (std::shared_ptr< ComputeProgram > const &program) override
 
DX11Texture2BindTexture (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
 
DX11GraphicsObjectShare (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)
 
GEObjectBind (std::shared_ptr< GraphicsObject > const &object)
 
GEDrawTargetBind (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
 
GEObjectGet (std::shared_ptr< GraphicsObject > const &object) const
 
GEDrawTargetGet (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 Member Functions

ID3D11Query * BeginOcclusionQuery ()
 
bool CreateBackBuffer (UINT xSize, UINT ySize)
 
bool CreateBestMatchingDevice ()
 
void CreateDefaultObjects ()
 
bool CreateDevice ()
 
bool CreateSwapChain (HWND handle, UINT xSize, UINT ySize)
 
bool DestroyBackBuffer ()
 
void DestroyDefaultObjects ()
 
bool DestroyDevice ()
 
bool DestroySwapChain ()
 
void Disable (Shader const *shader, DX11Shader *dxShader)
 
void DisableCBuffers (Shader const *shader, DX11Shader *dxShader)
 
void DisableRBuffers (Shader const *shader, DX11Shader *dxShader)
 
void DisableSamplers (Shader const *shader, DX11Shader *dxShader)
 
void DisableSBuffers (Shader const *shader, DX11Shader *dxShader)
 
void DisableShaders (std::shared_ptr< VisualEffect > const &effect, DX11VertexShader *dxVShader, DX11GeometryShader *dxGShader, DX11PixelShader *dxPShader)
 
void DisableTBuffers (Shader const *shader, DX11Shader *dxShader)
 
void DisableTextureArrays (Shader const *shader, DX11Shader *dxShader)
 
void DisableTextures (Shader const *shader, DX11Shader *dxShader)
 
uint64_t DrawPrimitive (VertexBuffer const *vbuffer, IndexBuffer const *ibuffer)
 
virtual uint64_t DrawPrimitive (std::shared_ptr< VertexBuffer > const &vbuffer, std::shared_ptr< IndexBuffer > const &ibuffer, std::shared_ptr< VisualEffect > const &effect) override
 
void Enable (Shader const *shader, DX11Shader *dxShader)
 
void EnableCBuffers (Shader const *shader, DX11Shader *dxShader)
 
void EnableRBuffers (Shader const *shader, DX11Shader *dxShader)
 
void EnableSamplers (Shader const *shader, DX11Shader *dxShader)
 
void EnableSBuffers (Shader const *shader, DX11Shader *dxShader)
 
bool EnableShaders (std::shared_ptr< VisualEffect > const &effect, DX11VertexShader *&dxVShader, DX11GeometryShader *&dxGShader, DX11PixelShader *&dxPShader)
 
void EnableTBuffers (Shader const *shader, DX11Shader *dxShader)
 
void EnableTextureArrays (Shader const *shader, DX11Shader *dxShader)
 
void EnableTextures (Shader const *shader, DX11Shader *dxShader)
 
uint64_t EndOcclusionQuery (ID3D11Query *occlusionQuery)
 
void Initialize (IDXGIAdapter *adapter, D3D_DRIVER_TYPE driverType, HMODULE softwareModule, UINT flags, D3D_FEATURE_LEVEL minFeatureLevel)
 

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
 

Additional Inherited Members

- Protected Types inherited from gte::GraphicsEngine
typedef std::shared_ptr< GEDrawTarget >(* CreateGEDrawTarget) (DrawTarget const *, std::vector< GEObject * > &, GEObject *)
 
typedef std::shared_ptr< GEObject >(* CreateGEObject) (void *, GraphicsObject const *)
 
- Protected Member Functions inherited from gte::GraphicsEngine
virtual void DestroyDefaultGlobalState ()
 
 GraphicsEngine ()
 
 GraphicsEngine (GraphicsEngine const &)=delete
 
GraphicsEngineoperator= (GraphicsEngine const &)=delete
 
bool Unbind (GraphicsObject const *object)
 
bool Unbind (DrawTarget const *target)
 
- Protected Member Functions inherited from gte::BaseEngine
 BaseEngine ()
 
 BaseEngine (BaseEngine const &)=delete
 
void CreateDefaultGlobalState ()
 
BaseEngineoperator= (BaseEngine const &)=delete
 
- Protected Attributes inherited from gte::GraphicsEngine
bool mAllowOcclusionQuery
 
CreateGEDrawTarget mCreateGEDrawTarget
 
std::array< CreateGEObject, GT_NUM_TYPES > mCreateGEObject
 
std::shared_ptr< DTListenermDTListener
 
ThreadSafeMap< DrawTarget const *, std::shared_ptr< GEDrawTarget > > mDTMap
 
voidmGEObjectCreator
 
std::shared_ptr< GOListenermGOListener
 
ThreadSafeMap< GraphicsObject const *, std::shared_ptr< GEObject > > mGOMap
 
std::unique_ptr< GEInputLayoutManagermILMap
 
bool mWarnOnNonemptyBridges
 
- Protected Attributes inherited from gte::BaseEngine
std::shared_ptr< BlendStatemActiveBlendState
 
std::shared_ptr< DepthStencilStatemActiveDepthStencilState
 
std::shared_ptr< FontmActiveFont
 
std::shared_ptr< RasterizerStatemActiveRasterizerState
 
std::array< float, 4 > mClearColor
 
float mClearDepth
 
unsigned int mClearStencil
 
std::shared_ptr< BlendStatemDefaultBlendState
 
std::shared_ptr< DepthStencilStatemDefaultDepthStencilState
 
std::shared_ptr< FontmDefaultFont
 
std::shared_ptr< RasterizerStatemDefaultRasterizerState
 
unsigned int mXSize
 
unsigned int mYSize
 

Detailed Description

Definition at line 26 of file GteDX11Engine.h.

Constructor & Destructor Documentation

DX11Engine::~DX11Engine ( )
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.

Member Function Documentation

ID3D11Query * DX11Engine::BeginOcclusionQuery ( )
private

Definition at line 849 of file GteDX11Engine.cpp.

void DX11Engine::BeginTimer ( DX11PerformanceCounter counter)

Definition at line 301 of file GteDX11Engine.cpp.

bool DX11Engine::BindProgram ( std::shared_ptr< ComputeProgram > const &  program)
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.

void DX11Engine::ClearBuffers ( )
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1378 of file GteDX11Engine.cpp.

void DX11Engine::ClearColorBuffer ( )
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1334 of file GteDX11Engine.cpp.

void DX11Engine::ClearDepthBuffer ( )
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1351 of file GteDX11Engine.cpp.

void DX11Engine::ClearStencilBuffer ( )
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1364 of file GteDX11Engine.cpp.

bool DX11Engine::CopyCpuToGpu ( std::shared_ptr< Buffer > const &  buffer)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1600 of file GteDX11Engine.cpp.

bool DX11Engine::CopyCpuToGpu ( std::shared_ptr< TextureSingle > const &  texture)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1612 of file GteDX11Engine.cpp.

bool DX11Engine::CopyCpuToGpu ( std::shared_ptr< TextureSingle > const &  texture,
unsigned int  level 
)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1624 of file GteDX11Engine.cpp.

bool DX11Engine::CopyCpuToGpu ( std::shared_ptr< TextureArray > const &  textureArray)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1637 of file GteDX11Engine.cpp.

bool DX11Engine::CopyCpuToGpu ( std::shared_ptr< TextureArray > const &  textureArray,
unsigned int  item,
unsigned int  level 
)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1650 of file GteDX11Engine.cpp.

bool DX11Engine::CopyGpuToCpu ( std::shared_ptr< Buffer > const &  buffer)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1664 of file GteDX11Engine.cpp.

bool DX11Engine::CopyGpuToCpu ( std::shared_ptr< TextureSingle > const &  texture)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1676 of file GteDX11Engine.cpp.

bool DX11Engine::CopyGpuToCpu ( std::shared_ptr< TextureSingle > const &  texture,
unsigned int  level 
)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1688 of file GteDX11Engine.cpp.

bool DX11Engine::CopyGpuToCpu ( std::shared_ptr< TextureArray > const &  textureArray)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1701 of file GteDX11Engine.cpp.

bool DX11Engine::CopyGpuToCpu ( std::shared_ptr< TextureArray > const &  textureArray,
unsigned int  item,
unsigned int  level 
)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1714 of file GteDX11Engine.cpp.

void DX11Engine::CopyGpuToGpu ( std::shared_ptr< Buffer > const &  buffer0,
std::shared_ptr< Buffer > const &  buffer1 
)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1728 of file GteDX11Engine.cpp.

void DX11Engine::CopyGpuToGpu ( std::shared_ptr< TextureSingle > const &  texture0,
std::shared_ptr< TextureSingle > const &  texture1 
)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1737 of file GteDX11Engine.cpp.

void DX11Engine::CopyGpuToGpu ( std::shared_ptr< TextureSingle > const &  texture0,
std::shared_ptr< TextureSingle > const &  texture1,
unsigned int  level 
)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1746 of file GteDX11Engine.cpp.

void DX11Engine::CopyGpuToGpu ( std::shared_ptr< TextureArray > const &  textureArray0,
std::shared_ptr< TextureArray > const &  textureArray1 
)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1757 of file GteDX11Engine.cpp.

void DX11Engine::CopyGpuToGpu ( std::shared_ptr< TextureArray > const &  textureArray0,
std::shared_ptr< TextureArray > const &  textureArray1,
unsigned int  item,
unsigned int  level 
)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1766 of file GteDX11Engine.cpp.

bool DX11Engine::CreateBackBuffer ( UINT  xSize,
UINT  ySize 
)
private

Definition at line 610 of file GteDX11Engine.cpp.

bool DX11Engine::CreateBestMatchingDevice ( )
private

Definition at line 483 of file GteDX11Engine.cpp.

void DX11Engine::CreateDefaultObjects ( )
private

Definition at line 714 of file GteDX11Engine.cpp.

bool DX11Engine::CreateDevice ( )
private

Definition at line 415 of file GteDX11Engine.cpp.

bool DX11Engine::CreateSwapChain ( HWND  handle,
UINT  xSize,
UINT  ySize 
)
private

Definition at line 545 of file GteDX11Engine.cpp.

bool DX11Engine::DestroyBackBuffer ( )
private

Definition at line 758 of file GteDX11Engine.cpp.

void DX11Engine::DestroyDefaultObjects ( )
private

Definition at line 723 of file GteDX11Engine.cpp.

bool DX11Engine::DestroyDevice ( )
private

Definition at line 734 of file GteDX11Engine.cpp.

bool DX11Engine::DestroySwapChain ( )
private

Definition at line 739 of file GteDX11Engine.cpp.

void DX11Engine::Disable ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 948 of file GteDX11Engine.cpp.

void DX11Engine::Disable ( std::shared_ptr< DrawTarget > const &  target)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1486 of file GteDX11Engine.cpp.

void DX11Engine::DisableCBuffers ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 984 of file GteDX11Engine.cpp.

void DX11Engine::DisableRBuffers ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 1108 of file GteDX11Engine.cpp.

void DX11Engine::DisableSamplers ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 1243 of file GteDX11Engine.cpp.

void DX11Engine::DisableSBuffers ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 1061 of file GteDX11Engine.cpp.

void DX11Engine::DisableShaders ( std::shared_ptr< VisualEffect > const &  effect,
DX11VertexShader dxVShader,
DX11GeometryShader dxGShader,
DX11PixelShader dxPShader 
)
private

Definition at line 925 of file GteDX11Engine.cpp.

void DX11Engine::DisableTBuffers ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 1017 of file GteDX11Engine.cpp.

void DX11Engine::DisableTextureArrays ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 1202 of file GteDX11Engine.cpp.

void DX11Engine::DisableTextures ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 1155 of file GteDX11Engine.cpp.

void DX11Engine::DisplayColorBuffer ( unsigned int  syncInterval)
overridevirtual

Implements gte::BaseEngine.

Definition at line 1401 of file GteDX11Engine.cpp.

uint64_t DX11Engine::DrawPrimitive ( VertexBuffer const *  vbuffer,
IndexBuffer const *  ibuffer 
)
private

Definition at line 776 of file GteDX11Engine.cpp.

uint64_t DX11Engine::DrawPrimitive ( std::shared_ptr< VertexBuffer > const &  vbuffer,
std::shared_ptr< IndexBuffer > const &  ibuffer,
std::shared_ptr< VisualEffect > const &  effect 
)
overrideprivatevirtual

Implements gte::GraphicsEngine.

Definition at line 1852 of file GteDX11Engine.cpp.

void DX11Engine::Enable ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 936 of file GteDX11Engine.cpp.

void DX11Engine::Enable ( std::shared_ptr< DrawTarget > const &  target)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1479 of file GteDX11Engine.cpp.

void DX11Engine::EnableCBuffers ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 960 of file GteDX11Engine.cpp.

void DX11Engine::EnableRBuffers ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 1077 of file GteDX11Engine.cpp.

void DX11Engine::EnableSamplers ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 1219 of file GteDX11Engine.cpp.

void DX11Engine::EnableSBuffers ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 1026 of file GteDX11Engine.cpp.

bool DX11Engine::EnableShaders ( std::shared_ptr< VisualEffect > const &  effect,
DX11VertexShader *&  dxVShader,
DX11GeometryShader *&  dxGShader,
DX11PixelShader *&  dxPShader 
)
private

Definition at line 885 of file GteDX11Engine.cpp.

void DX11Engine::EnableTBuffers ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 993 of file GteDX11Engine.cpp.

void DX11Engine::EnableTextureArrays ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 1171 of file GteDX11Engine.cpp.

void DX11Engine::EnableTextures ( Shader const *  shader,
DX11Shader dxShader 
)
private

Definition at line 1124 of file GteDX11Engine.cpp.

uint64_t DX11Engine::EndOcclusionQuery ( ID3D11Query *  occlusionQuery)
private

Definition at line 866 of file GteDX11Engine.cpp.

void DX11Engine::EndTimer ( DX11PerformanceCounter counter)

Definition at line 316 of file GteDX11Engine.cpp.

void DX11Engine::Execute ( std::shared_ptr< ComputeProgram > const &  program,
unsigned int  numXGroups,
unsigned int  numYGroups,
unsigned int  numZGroups 
)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1803 of file GteDX11Engine.cpp.

void DX11Engine::ExitFullscreen ( )

Definition at line 285 of file GteDX11Engine.cpp.

void DX11Engine::Flush ( )
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1844 of file GteDX11Engine.cpp.

IDXGIAdapter * gte::DX11Engine::GetAdapter ( ) const
inline

Definition at line 289 of file GteDX11Engine.h.

void DX11Engine::GetDepthRange ( float &  zmin,
float &  zmax 
) const
overridevirtual

Implements gte::BaseEngine.

Definition at line 1292 of file GteDX11Engine.cpp.

ID3D11Device * gte::DX11Engine::GetDevice ( ) const
inline

Definition at line 314 of file GteDX11Engine.h.

D3D_DRIVER_TYPE gte::DX11Engine::GetDriverType ( ) const
inline

Definition at line 294 of file GteDX11Engine.h.

D3D_FEATURE_LEVEL gte::DX11Engine::GetFeatureLevel ( ) const
inline

Definition at line 324 of file GteDX11Engine.h.

UINT gte::DX11Engine::GetFlags ( ) const
inline

Definition at line 304 of file GteDX11Engine.h.

ID3D11DeviceContext * gte::DX11Engine::GetImmediate ( ) const
inline

Definition at line 319 of file GteDX11Engine.h.

D3D_FEATURE_LEVEL gte::DX11Engine::GetMinFeatureLevel ( ) const
inline

Definition at line 309 of file GteDX11Engine.h.

bool DX11Engine::GetNumActiveElements ( std::shared_ptr< StructuredBuffer > const &  buffer)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1777 of file GteDX11Engine.cpp.

HMODULE gte::DX11Engine::GetSoftwareModule ( ) const
inline

Definition at line 299 of file GteDX11Engine.h.

void DX11Engine::GetViewport ( int x,
int y,
int w,
int h 
) const
overridevirtual

Implements gte::BaseEngine.

Definition at line 1268 of file GteDX11Engine.cpp.

void DX11Engine::Initialize ( IDXGIAdapter *  adapter,
D3D_DRIVER_TYPE  driverType,
HMODULE  softwareModule,
UINT  flags,
D3D_FEATURE_LEVEL  minFeatureLevel 
)
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.

bool DX11Engine::Resize ( unsigned int  w,
unsigned int  h 
)
overridevirtual

Implements gte::BaseEngine.

Definition at line 1303 of file GteDX11Engine.cpp.

void DX11Engine::SetBlendState ( std::shared_ptr< BlendState > const &  state)
overridevirtual

Implements gte::BaseEngine.

Definition at line 1407 of file GteDX11Engine.cpp.

void DX11Engine::SetDepthRange ( float  zmin,
float  zmax 
)
overridevirtual

Implements gte::BaseEngine.

Definition at line 1281 of file GteDX11Engine.cpp.

void DX11Engine::SetDepthStencilState ( std::shared_ptr< DepthStencilState > const &  state)
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.

void DX11Engine::SetRasterizerState ( std::shared_ptr< RasterizerState > const &  state)
overridevirtual

Implements gte::BaseEngine.

Definition at line 1455 of file GteDX11Engine.cpp.

void DX11Engine::SetViewport ( int  x,
int  y,
int  w,
int  h 
)
overridevirtual

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.

void DX11Engine::Unmap ( std::shared_ptr< Resource > const &  resource,
unsigned int  sri 
)

Definition at line 200 of file GteDX11Engine.cpp.

bool DX11Engine::Update ( std::shared_ptr< Buffer > const &  buffer)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1536 of file GteDX11Engine.cpp.

bool DX11Engine::Update ( std::shared_ptr< TextureSingle > const &  texture)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1548 of file GteDX11Engine.cpp.

bool DX11Engine::Update ( std::shared_ptr< TextureSingle > const &  texture,
unsigned int  level 
)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1560 of file GteDX11Engine.cpp.

bool DX11Engine::Update ( std::shared_ptr< TextureArray > const &  textureArray)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1573 of file GteDX11Engine.cpp.

bool DX11Engine::Update ( std::shared_ptr< TextureArray > const &  textureArray,
unsigned int  item,
unsigned int  level 
)
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1586 of file GteDX11Engine.cpp.

void DX11Engine::WaitForFinish ( )
overridevirtual

Implements gte::GraphicsEngine.

Definition at line 1824 of file GteDX11Engine.cpp.

Member Data Documentation

ID3D11DepthStencilView* gte::DX11Engine::mActiveDS
private

Definition at line 156 of file GteDX11Engine.h.

std::array<ID3D11RenderTargetView*, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT> gte::DX11Engine::mActiveRT
private

Definition at line 155 of file GteDX11Engine.h.

IDXGIAdapter* gte::DX11Engine::mAdapter
private

Definition at line 134 of file GteDX11Engine.h.

ID3D11Texture2D* gte::DX11Engine::mColorBuffer
private

Definition at line 147 of file GteDX11Engine.h.

ID3D11RenderTargetView* gte::DX11Engine::mColorView
private

Definition at line 148 of file GteDX11Engine.h.

ID3D11Texture2D* gte::DX11Engine::mDepthStencilBuffer
private

Definition at line 149 of file GteDX11Engine.h.

ID3D11DepthStencilView* gte::DX11Engine::mDepthStencilView
private

Definition at line 150 of file GteDX11Engine.h.

ID3D11Device* gte::DX11Engine::mDevice
private

Definition at line 141 of file GteDX11Engine.h.

D3D_DRIVER_TYPE gte::DX11Engine::mDriverType
private

Definition at line 135 of file GteDX11Engine.h.

D3D_FEATURE_LEVEL gte::DX11Engine::mFeatureLevel
private

Definition at line 143 of file GteDX11Engine.h.

UINT gte::DX11Engine::mFlags
private

Definition at line 137 of file GteDX11Engine.h.

std::map<std::wstring, bool> gte::DX11Engine::mFullscreenState
private

Definition at line 171 of file GteDX11Engine.h.

ID3D11DeviceContext* gte::DX11Engine::mImmediate
private

Definition at line 142 of file GteDX11Engine.h.

D3D_FEATURE_LEVEL gte::DX11Engine::mMinFeatureLevel
private

Definition at line 138 of file GteDX11Engine.h.

unsigned int gte::DX11Engine::mNumActiveRTs
private

Definition at line 154 of file GteDX11Engine.h.

ID3D11DepthStencilView* gte::DX11Engine::mSaveDS
private

Definition at line 159 of file GteDX11Engine.h.

std::array<ID3D11RenderTargetView*, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT> gte::DX11Engine::mSaveRT
private

Definition at line 158 of file GteDX11Engine.h.

D3D11_VIEWPORT gte::DX11Engine::mSaveViewport
private

Definition at line 157 of file GteDX11Engine.h.

HMODULE gte::DX11Engine::mSoftwareModule
private

Definition at line 136 of file GteDX11Engine.h.

IDXGISwapChain* gte::DX11Engine::mSwapChain
private

Definition at line 146 of file GteDX11Engine.h.

D3D11_VIEWPORT gte::DX11Engine::mViewport
private

Definition at line 151 of file GteDX11Engine.h.

ID3D11Query* gte::DX11Engine::mWaitQuery
private

Definition at line 164 of file GteDX11Engine.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:05