![]() |
Plasma Engine
2.0
|
RenderDoc implementation of the plFrameCaptureInterface interface. More...
#include <RenderDocSingleton.h>
Public Member Functions | |
virtual bool | IsInitialized () const override |
Determine if a singleton implementing this interface has successfully been initialized and frame capture functionality is available. | |
virtual void | SetAbsCaptureFilePathTemplate (plStringView sFilePathTemplate) override |
Specify the absolute base file path for storing frame captures. For the final output file name, an identifier and/or frame or capture number will be appended. Note that the final output file name is determined by the frame capture implementation. Use GetLastAbsCaptureFileName() for retrieving the actual absolute file name of the most recently written capture file. | |
virtual plStringView | GetAbsCaptureFilePathTemplate () const override |
Retrieve the absolute file path for storing frame captures. | |
virtual void | StartFrameCapture (plWindowHandle hWnd) override |
Start capturing a frame rendered to the given window. | |
virtual bool | IsFrameCapturing () const override |
Determine if a frame capture is currently in progress. | |
virtual void | EndFrameCaptureAndWriteOutput (plWindowHandle hWnd) override |
End the current frame capture and write the result to the path given by SetAbsCaptureFilePathTemplate. | |
virtual void | EndFrameCaptureAndDiscardResult (plWindowHandle hWnd) override |
End the current frame capture and discard the corresponding data, saving processing time and file I/O in the process. | |
virtual plResult | GetLastAbsCaptureFileName (plStringBuilder &out_sFileName) const override |
Retrieve the absolute file name of the last successful frame capture. Returns PL_FAILURE if no successful capture has been performed. | |
RenderDoc implementation of the plFrameCaptureInterface interface.
Adds support for capturing frames through RenderDoc. When the plugin gets loaded, an plRenderDoc instance is created and initialized. It tries to find a RenderDoc DLL dynamically, so for initialization to succeed, the DLL has to be available in some search directory (e.g. binary folder or PATH). If an outdated RenderDoc DLL is found, initialization will fail and the plugin will be deactivated.
For interface documentation see plFrameCaptureInterface
|
overridevirtual |
End the current frame capture and discard the corresponding data, saving processing time and file I/O in the process.
Implements plFrameCaptureInterface.
|
overridevirtual |
End the current frame capture and write the result to the path given by SetAbsCaptureFilePathTemplate.
Implements plFrameCaptureInterface.
|
overridevirtual |
Retrieve the absolute file path for storing frame captures.
Implements plFrameCaptureInterface.
|
overridevirtual |
Retrieve the absolute file name of the last successful frame capture. Returns PL_FAILURE if no successful capture has been performed.
Implements plFrameCaptureInterface.
|
overridevirtual |
Determine if a frame capture is currently in progress.
Implements plFrameCaptureInterface.
|
overridevirtual |
Determine if a singleton implementing this interface has successfully been initialized and frame capture functionality is available.
Implements plFrameCaptureInterface.
|
overridevirtual |
Specify the absolute base file path for storing frame captures. For the final output file name, an identifier and/or frame or capture number will be appended. Note that the final output file name is determined by the frame capture implementation. Use GetLastAbsCaptureFileName() for retrieving the actual absolute file name of the most recently written capture file.
Implements plFrameCaptureInterface.
|
overridevirtual |
Start capturing a frame rendered to the given window.
Implements plFrameCaptureInterface.