| 2600 | } |
| 2601 | |
| 2602 | void CaptureContext::RevertShaderEdit(IShaderViewer *viewer, ResourceId id) |
| 2603 | { |
| 2604 | QPointer<QObject> ptr(viewer->Widget()); |
| 2605 | |
| 2606 | // remove the replacement on close (we could make this more sophisticated if there |
| 2607 | // was a place to control replaced resources/shaders). |
| 2608 | Replay().AsyncInvoke([this, viewer, id, ptr](IReplayController *r) { |
| 2609 | if(IsCaptureLoaded()) |
| 2610 | r->RemoveReplacement(id); |
| 2611 | GUIInvoke::call(GetMainWindow()->Widget(), [this, viewer, id, ptr] { |
| 2612 | UnregisterReplacement(id); |
| 2613 | if(ptr) |
| 2614 | viewer->ShowErrors(rdcstr()); |
| 2615 | }); |
| 2616 | }); |
| 2617 | } |
| 2618 | |
| 2619 | IShaderViewer *CaptureContext::DebugShader(const ShaderReflection *shader, ResourceId pipeline, |
| 2620 | ShaderDebugTrace *trace, const rdcstr &debugContext) |
nothing calls this directly
no test coverage detected