diff options
| author | NeoBrainX <NeoBrainX@googlemail.com> | 2010-12-05 14:15:36 +0000 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@googlemail.com> | 2010-12-05 14:15:36 +0000 |
| commit | 7854bd71098fe556ddc9839ad08d27fab7ecba33 (patch) | |
| tree | 9f0fa51a816530e44f87449879398a645ea425d9 /Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp | |
| parent | 9da4fe086b3f7c0c2e310c3b6438ed131fb13ff2 (diff) | |
Merged the D3D9 debugger into VideoCommon/VideoUICommon:
Separated UI from debugger functionality. Generally cleaned up that stuff.
Most functionality needs to be reimplemented now, but will be available to D3D9, D3D11 as well as OpenGL then.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6523 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp b/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp index a9ee55a044..0799e4e70f 100644 --- a/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp +++ b/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp @@ -32,6 +32,7 @@ #include "BPMemory.h" #include "XFMemory.h" #include "ImageWrite.h" +#include "Debugger.h" extern int frameCount; @@ -331,6 +332,7 @@ bool PixelShaderCache::SetShader(DSTALPHA_MODE dstAlphaMode, u32 components) if (uid == last_pixel_shader_uid && PixelShaders[uid].frameCount == frameCount) { PSCache::const_iterator iter = PixelShaders.find(uid); + GFX_DEBUGGER_PAUSE_AT(NEXT_PIXEL_SHADER_CHANGE,true); return (iter != PixelShaders.end() && iter->second.shader); } @@ -346,6 +348,7 @@ bool PixelShaderCache::SetShader(DSTALPHA_MODE dstAlphaMode, u32 components) last_entry = &entry; D3D::gfxstate->SetPShader(entry.shader); + GFX_DEBUGGER_PAUSE_AT(NEXT_PIXEL_SHADER_CHANGE,true); return (entry.shader != NULL); } @@ -356,6 +359,7 @@ bool PixelShaderCache::SetShader(DSTALPHA_MODE dstAlphaMode, u32 components) if (!D3D::CompilePixelShader(code, strlen(code), &pbytecode)) { PanicAlert("Failed to compile Pixel Shader:\n\n%s", code); + GFX_DEBUGGER_PAUSE_AT(NEXT_ERROR, true); return false; } @@ -366,6 +370,7 @@ bool PixelShaderCache::SetShader(DSTALPHA_MODE dstAlphaMode, u32 components) bool result = InsertByteCode(uid, pbytecode->Data(), pbytecode->Size()); D3D::gfxstate->SetPShader(last_entry->shader); pbytecode->Release(); + GFX_DEBUGGER_PAUSE_AT(NEXT_PIXEL_SHADER_CHANGE, true); return result; } |
