Add renderdoc_parser: direct-call Python interface for RenderDoc capture analysis
- Convert from MCP protocol layer to direct Python function calls - 42 functions across 9 modules: session, event, pipeline, resource, data, shader, advanced, performance, diagnostic - Requires Python 3.6 (renderdoc.pyd is compiled for Python 3.6) - Fix renderdoc API calls: GetColorBlends, GetStencilFaces, GetViewport(i), GetScissor(i) - Remove Python 3.10+ type annotations for Python 3.6 compatibility - Add README.md with full API documentation - Includes test.py for basic smoke testing
This commit is contained in:
56
engine/tools/renderdoc_parser/__init__.py
Normal file
56
engine/tools/renderdoc_parser/__init__.py
Normal file
@@ -0,0 +1,56 @@
|
||||
"""renderdoc: Direct-call interface for RenderDoc capture analysis.
|
||||
|
||||
Usage:
|
||||
from renderdoc import open_capture, get_capture_info, get_draw_call_state
|
||||
|
||||
open_capture("frame.rdc")
|
||||
info = get_capture_info()
|
||||
state = get_draw_call_state(142)
|
||||
print(state)
|
||||
"""
|
||||
|
||||
from .session import get_session
|
||||
from .tools import (
|
||||
open_capture,
|
||||
close_capture,
|
||||
get_capture_info,
|
||||
get_frame_overview,
|
||||
list_actions,
|
||||
get_action,
|
||||
set_event,
|
||||
search_actions,
|
||||
find_draws,
|
||||
get_pipeline_state,
|
||||
get_shader_bindings,
|
||||
get_vertex_inputs,
|
||||
get_draw_call_state,
|
||||
list_textures,
|
||||
list_buffers,
|
||||
list_resources,
|
||||
get_resource_usage,
|
||||
save_texture,
|
||||
get_buffer_data,
|
||||
pick_pixel,
|
||||
get_texture_stats,
|
||||
read_texture_pixels,
|
||||
export_draw_textures,
|
||||
save_render_target,
|
||||
export_mesh,
|
||||
disassemble_shader,
|
||||
get_shader_reflection,
|
||||
get_cbuffer_contents,
|
||||
pixel_history,
|
||||
get_post_vs_data,
|
||||
diff_draw_calls,
|
||||
analyze_render_passes,
|
||||
sample_pixel_region,
|
||||
debug_shader_at_pixel,
|
||||
get_pass_timing,
|
||||
analyze_overdraw,
|
||||
analyze_bandwidth,
|
||||
analyze_state_changes,
|
||||
diagnose_negative_values,
|
||||
diagnose_precision_issues,
|
||||
diagnose_reflection_mismatch,
|
||||
diagnose_mobile_risks,
|
||||
)
|
||||
Reference in New Issue
Block a user