RenderGraphCaptureResult class Debugging and profiling
The product of one captured frame.
Constructors
-
RenderGraphCaptureResult({required List<
CapturedPass> passes, required List<CapturedResource> resources, required int pixelWidth, required int pixelHeight}) -
RenderGraphCaptureResult.fromJson(Map<
String, Object?> json) -
Rebuilds a capture from toJson output. GPU textures are not restored;
thumbnails serialized with images come back as
CapturedResource.thumbnailPng, and shader names and decoded uniforms
keep what they were serialized with.
factory
- RenderGraphCaptureResult.fromJsonString(String source)
-
Parses toJsonString output.
factory
Properties
-
draws
→ Iterable<
CapturedDraw> -
Every draw of the frame, in execution order.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
passes
→ List<
CapturedPass> -
final
- pixelHeight → int
-
final
- pixelWidth → int
-
The captured view's render size in physical pixels.
final
-
resources
→ List<
CapturedResource> -
Every observed resource, in write order (build-time acquisitions
first). A key rewritten by a later pass appears once per write, each
entry carrying that write's snapshot.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resourceAt(
String key, int passIndex) → CapturedResource? -
The latest write of
keyat or beforepassIndex, or null. -
toJson(
{bool includeImages = true, bool includeUniformBytes = false}) → Future< Map< String, Object?> > -
Serializes the capture. With
includeImages, every thumbnail is read back as PNG first (asynchronous), and withincludeUniformByteseach draw keeps its packed uniform bytes. The result round-trips through RenderGraphCaptureResult.fromJson, so a capture can be attached to a bug report and opened elsewhere. -
toJsonString(
{bool includeImages = true, bool includeUniformBytes = false}) → Future< String> - toJson as a JSON string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited