mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Updated README.
This commit is contained in:
parent
58b37542c8
commit
d35c14164b
2 changed files with 26 additions and 3 deletions
16
README.md
16
README.md
|
@ -411,10 +411,22 @@ build errors.
|
||||||
Debugging
|
Debugging
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
### RenderDoc
|
||||||
|
|
||||||
When using DX11 renderer, you can drop in `renderdoc.dll` into working
|
When using DX11 renderer, you can drop in `renderdoc.dll` into working
|
||||||
directory, and it will be automatically loaded during bgfx initialization. This
|
directory, and it will be automatically loaded during bgfx initialization. This
|
||||||
allows frame capture at any time by pressing **F11**.
|
allows frame capture at any time by pressing **F11**.
|
||||||
|
|
||||||
|
Download: [RenderDoc](https://renderdoc.org/builds)
|
||||||
|
|
||||||
|
### IntelGPA
|
||||||
|
|
||||||
|
Right click **Intel GPA Monitor** tray icon, choose preferences, check
|
||||||
|
"Auto-detect launched applications" option. Find `InjectionList.txt` in GPA
|
||||||
|
directory and add `examples-*` to the list.
|
||||||
|
|
||||||
|
Download: [IntelGPA](https://software.intel.com/en-us/vcsource/tools/intel-gpa)
|
||||||
|
|
||||||
Other debuggers:
|
Other debuggers:
|
||||||
|
|
||||||
| Name | OS | DX9 | DX11 | GL | GLES | Source |
|
| Name | OS | DX9 | DX11 | GL | GLES | Source |
|
||||||
|
@ -424,11 +436,9 @@ Other debuggers:
|
||||||
| IntelGPA | Linux/OSX/Win | x | x | | x | |
|
| IntelGPA | Linux/OSX/Win | x | x | | x | |
|
||||||
| RenderDoc | Win | | x | | | x |
|
| RenderDoc | Win | | x | | | x |
|
||||||
|
|
||||||
|
Download:
|
||||||
[APITrace](https://apitrace.github.io/)
|
[APITrace](https://apitrace.github.io/)
|
||||||
[CodeXL](http://developer.amd.com/tools-and-sdks/opencl-zone/codexl/)
|
[CodeXL](http://developer.amd.com/tools-and-sdks/opencl-zone/codexl/)
|
||||||
[IntelGPA](https://software.intel.com/en-us/vcsource/tools/intel-gpa)
|
|
||||||
[RenderDoc](http://cryengine.com/renderdoc)
|
|
||||||
|
|
||||||
|
|
||||||
SDL, GLFW, etc.
|
SDL, GLFW, etc.
|
||||||
---------------
|
---------------
|
||||||
|
|
|
@ -533,6 +533,19 @@ namespace bgfx
|
||||||
m_fmtDepth = D3DFMT_D24FS8;
|
m_fmtDepth = D3DFMT_D24FS8;
|
||||||
#endif // BX_PLATFORM_WINDOWS
|
#endif // BX_PLATFORM_WINDOWS
|
||||||
|
|
||||||
|
{
|
||||||
|
IDirect3DSwapChain9* swapChain;
|
||||||
|
DX_CHECK(m_device->GetSwapChain(0, &swapChain) );
|
||||||
|
|
||||||
|
// GPA increases swapchain ref count.
|
||||||
|
//
|
||||||
|
// This causes assert in debug. When debugger is present refcount
|
||||||
|
// checks are off.
|
||||||
|
setGraphicsDebuggerPresent(1 != getRefCount(swapChain) );
|
||||||
|
|
||||||
|
DX_RELEASE(swapChain, 0);
|
||||||
|
}
|
||||||
|
|
||||||
postReset();
|
postReset();
|
||||||
|
|
||||||
m_initialized = true;
|
m_initialized = true;
|
||||||
|
|
Loading…
Reference in a new issue