FakeTransfer class final
A transfer pass that records its copies into the device's calls, and
refuses those the device's features lack.
- Inheritance
-
- Object
- TransferEncoder
- FakeTransfer
Constructors
-
FakeTransfer(DeviceFeatures features, List<
RecordedCall> calls)
Properties
-
calls
→ List<
RecordedCall> -
Shared with the device that opened it.
final
- features → DeviceFeatures
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- submitted ↔ bool
-
Whether submit has been called.
getter/setter pair
Methods
-
clearBuffer(
StorageBuffer buffer, {int offsetInBytes = 0, int? sizeInBytes}) → void -
Zeroes
sizeInBytesbytes (to the end by default) ofbufferfromoffsetInBytes.DeviceFeature.bufferCopy.override -
copyBufferToBuffer(
StorageBuffer source, int sourceOffset, StorageBuffer destination, int destinationOffset, int size) → void -
Copies
sizebytes fromsourceatsourceOffsetintodestinationatdestinationOffset. Offsets and size are multiples of four.DeviceFeature.bufferCopy.override -
copyBufferToTexture(
StorageBuffer source, BufferTextureLayout layout, TextureCopyLocation destination, {required int width, required int height, int depthOrArrayLayers = 1}) → void -
Copies texels laid out in
sourceaslayoutintodestination.DeviceFeature.bufferTextureCopy.override -
copyTextureToBuffer(
TextureCopyLocation source, StorageBuffer destination, BufferTextureLayout layout, {required int width, required int height, int depthOrArrayLayers = 1}) → void -
Copies texels from
sourceintodestination, laid out aslayout.DeviceFeature.bufferTextureCopy.override -
copyTextureToTexture(
TextureCopyLocation source, TextureCopyLocation destination, {required int width, required int height, int depthOrArrayLayers = 1}) → void -
Copies a
width×height×depthOrArrayLayersbox of texels fromsourcetodestination. The two textures share a format (or differ only in sRGB-ness) and a sample count.DeviceFeature.textureCopy.override -
insertDebugMarker(
String label) → void -
Marks one point in the command stream with
label.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
popDebugGroup(
) → void -
Closes the group the last pushDebugGroup opened.
inherited
-
pushDebugGroup(
String label) → void -
Opens a named group around the commands recorded until the matching
popDebugGroup, for a GPU debugger or a frame capture to show as one
node. Groups nest. Does nothing on a backend without markers.
inherited
-
resolveTexture(
TextureCopyLocation source, TextureCopyLocation destination) → void -
Resolves the multisampled
sourceinto the single-sampledestinationof the same size and format — the explicit form of a pass'sColorTarget.resolveTexture, for a target several passes drew into.DeviceFeature.offscreenMultisample. WebGL2'sblitFramebuffer; WebGPU does it with an empty pass that resolves.override -
submit(
) → void -
Hands the copies to the queue. Nothing recorded after this reaches it.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited