GPU Capture and Debug Tools

namespace d3d

Functions

bool start_capture(const char *name, const char *savepath)

Starts the capture process. All previous outstanding commands will be flushed.

Parameters:
  • name – The name of the capture. This might show up in the capture tool or be used in the filename depending on platform and the capture tool used. nullptr is not allowed.

  • savepath – The path where the captured file will be saved. Not all capture tools respect this. nullptr means default path is used.

Returns:

true on success, false otherwise.

void stop_capture()

Stops the ongoing capture process.

This function halts any active capture operation that is currently in progress. Commands made since the last call to start_capture() will be flushed.