FrameResourceUse class final

What one resource of the frame graph stood on this frame: the texture a version of it held last, and how many versions the frame made of it.

One per resource a node read, wrote or provided, kept while RenderSettings.telemetry records nodes, in FrameResult.resources. Typed, so a profiler or a capture tool reads the id and the size rather than parsing a label.

Constructors

FrameResourceUse({required ResourceId id, required int versions, required int width, required int height, required TextureFormat format, required int bytes})
The use of the resource id over the frame, as the renderer filled it.
const

Properties

bytes → int
What that texture holds, by FrameResources' own account of a texture: its base level and its chain, the floor every backend sits on.
final
format → TextureFormat
Format of the texture its last version stood on.
final
hashCode → int
The hash code for this object.
no setterinherited
height → int
Height in pixels of the texture its last version stood on.
final
id → ResourceId
The resource, as the graph's nodes declare it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
versions → int
How many versions of it the frame bound: one for a target drawn once, more for one a chain of passes reads and writes back.
final
width → int
The size and format of the texture its last version stood on.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited