diff options
Diffstat (limited to 'tools/render-test/render.h')
| -rw-r--r-- | tools/render-test/render.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/render-test/render.h b/tools/render-test/render.h index ba76f795d..f66454712 100644 --- a/tools/render-test/render.h +++ b/tools/render-test/render.h @@ -15,6 +15,9 @@ namespace renderer_test { typedef intptr_t Int; typedef uintptr_t UInt; +// pre declare types +class Surface; + // Declare opaque type class InputLayout: public Slang::RefObject { @@ -552,7 +555,8 @@ public: /// Create a buffer resource virtual BufferResource* createBufferResource(Resource::Usage initialUsage, const BufferResource::Desc& desc, const void* initData = nullptr) { return nullptr; } - virtual SlangResult captureScreenShot(const char* outputPath) = 0; + /// Captures the back buffer and stores the result in surfaceOut. If the surface contains data - it will either be overwritten (if same size and format), or freed and a re-allocated. + virtual SlangResult captureScreenSurface(Surface& surfaceOut) = 0; virtual InputLayout* createInputLayout(const InputElementDesc* inputElements, UInt inputElementCount) = 0; virtual BindingState* createBindingState(const BindingState::Desc& desc) { return nullptr; } |
