GpuSurfaceFrame class sealed
A writable frame acquired from a GpuSurface.
A frame is a temporary write lease for colorTexture. Record the final color writes into that texture, then call present. If the frame will not be presented, call discard so the surface can reuse its backing texture.
Call exactly one of present or discard for each acquired frame. Calling discard after present is a no-op, and calling present after discard throws.
- Implementers
Properties
- colorTexture → Texture
-
The color texture to use as the final render target for this frame.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
discard(
) → void - Releases this frame without presenting it.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
present(
CommandBuffer commandBuffer) → GpuPresentStatus - Publishes this frame and returns the presentation status.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited