Skip to content

Instantly share code, notes, and snippets.

@ifree
ifree / renderdoc_capture.py
Created June 7, 2024 16:38
Renderdoc in process frame capture
import ctypes
renderdoc_dll = ctypes.CDLL(r'renderdoc.[dll|so]')
# Calling convention
RENDERDOC_CC = ctypes.CFUNCTYPE
# Enums for capture options
class RENDERDOC_CaptureOption(ctypes.c_uint32):
eRENDERDOC_Option_AllowVSync = 0