sokol_app.h d3d11: new swapchain code doesn't work in RenderDoc

Created on 8 Nov 2020  路  3Comments  路  Source: floooh/sokol

Starting one of the sokol-samples from the sapp directory in RenderDoc 1.10 causes the sample app to quit immediately and nothing being recorded in RenderDoc.

This happens since the D3D11 swapchain code was rewritten in sokol_app.h:

https://github.com/floooh/sokol/commit/cb50040aab19ef299117742f983bb2f99283ef46#diff-42747840ac0dd5aaeaa9368919646cc57e72a0bb54c03ad85c7eac18956ea584

bug

All 3 comments

RenderDoc can't get the backbuffer:

image

...looks like it's this code in RenderDoc which fails where RenderDocs's DXGISwapChain::GetBuffer() wrapper calls the original implementation:

https://github.com/baldurk/renderdoc/blob/41c57c0b68ba519363a6afbf13de8ebd1d4e01e7/renderdoc/driver/dxgi/dxgi_wrapped.cpp#L492-L509

Looks like the current RenderDoc nightly build is working (so the next release 1.11 should work).

https://renderdoc.org/autobuilds/v1.x/2020/RenderDoc_2020_11_07_2bfccb13_64.zip

Was this page helpful?
0 / 5 - 0 ratings

Related issues

floooh picture floooh  路  3Comments

septag picture septag  路  6Comments

pjako picture pjako  路  3Comments

floooh picture floooh  路  3Comments

amerkoleci picture amerkoleci  路  4Comments