Files
XCEngine/engine/tools/renderdoc_parser/tools/__init__.py
ssdfasd fb01beb959 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
2026-03-23 18:46:20 +08:00

33 lines
1.2 KiB
Python

"""Direct-call tools - all functions exposed at package level for direct import."""
from .session_tools import (
open_capture, close_capture, get_capture_info, get_frame_overview,
)
from .event_tools import (
list_actions, get_action, set_event, search_actions, find_draws,
)
from .pipeline_tools import (
get_pipeline_state, get_shader_bindings, get_vertex_inputs, get_draw_call_state,
)
from .resource_tools import (
list_textures, list_buffers, list_resources, get_resource_usage,
)
from .data_tools import (
save_texture, get_buffer_data, pick_pixel, get_texture_stats,
read_texture_pixels, export_draw_textures, save_render_target, export_mesh,
)
from .shader_tools import (
disassemble_shader, get_shader_reflection, get_cbuffer_contents,
)
from .advanced_tools import (
pixel_history, get_post_vs_data, diff_draw_calls, analyze_render_passes,
sample_pixel_region, debug_shader_at_pixel,
)
from .performance_tools import (
get_pass_timing, analyze_overdraw, analyze_bandwidth, analyze_state_changes,
)
from .diagnostic_tools import (
diagnose_negative_values, diagnose_precision_issues,
diagnose_reflection_mismatch, diagnose_mobile_risks,
)