FakeTransfer class final

A transfer pass that records its copies into the device's calls, and refuses those the device's features lack.

Inheritance

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 sizeInBytes bytes (to the end by default) of buffer from offsetInBytes. DeviceFeature.bufferCopy.
override
copyBufferToBuffer(StorageBuffer source, int sourceOffset, StorageBuffer destination, int destinationOffset, int size) → void
Copies size bytes from source at sourceOffset into destination at destinationOffset. 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 source as layout into destination. DeviceFeature.bufferTextureCopy.
override
copyTextureToBuffer(TextureCopyLocation source, StorageBuffer destination, BufferTextureLayout layout, {required int width, required int height, int depthOrArrayLayers = 1}) → void
Copies texels from source into destination, laid out as layout. DeviceFeature.bufferTextureCopy.
override
copyTextureToTexture(TextureCopyLocation source, TextureCopyLocation destination, {required int width, required int height, int depthOrArrayLayers = 1}) → void
Copies a width × height × depthOrArrayLayers box of texels from source to destination. 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 source into the single-sample destination of the same size and format — the explicit form of a pass's ColorTarget.resolveTexture, for a target several passes drew into. DeviceFeature.offscreenMultisample. WebGL2's blitFramebuffer; 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