MetalSurfaceReplacement class final
A new Metal layer for RenderSessionHandle.setMetalSurfaceTarget().
The session renders to it with the device that it attached with. It uses the layer until a replacement or release of the target completes, a detach or release of the session completes, or an abandon of it returns.
See mln_metal_surface_replacement in the
C API reference.
Constructors
- MetalSurfaceReplacement({required LogicalSize logicalSize, required NativePointer layer})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- layer → NativePointer
-
Your CAMetalLayer.
final
- logicalSize → LogicalSize
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{LogicalSize? logicalSize, NativePointer? layer}) → MetalSurfaceReplacement - A copy of this value with the given members replaced.
-
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