FakeComputePass class final
A compute pass that records rather than runs: each call a RecordedCall in commands, in order, after the checks a real encoder makes (the storage range and its alignment, the dispatch size).
- Inheritance
-
- Object
- ComputeEncoder
- FakeComputePass
Constructors
- FakeComputePass({required DeviceLimits limits, String? label})
-
A pass held to
limits, labelledlabel.
Properties
-
commands
→ List<
RecordedCall> -
Everything recorded, in order.
final
- dispatches → int
-
How many dispatches were recorded.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String?
-
The label it was opened with.
final
- limits → DeviceLimits
-
What the device that opened it reports.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wasSubmitted → bool
-
Whether submit has run.
no setter
Methods
-
beginPipelineStatisticsQuery(
QuerySet querySet, int queryIndex) → void -
Starts counting into query
queryIndexofquerySet, a QueryType.pipelineStatistics set —DeviceFeature.pipelineStatisticsQuery. Only PipelineStatistic.computeShaderInvocations counts in a compute pass.inherited -
bindPipeline(
ComputePipelineHandle pipeline) → void -
Makes
pipelinethe one the next dispatch runs, and forgets every binding.override -
bindStorageBuffer(
ShaderHandle shader, String name, StorageBuffer buffer, {int offsetInBytes = 0, int? sizeInBytes}) → bool -
Binds
bufferto the storage bindingnameofshader. False when the stage declares no such binding.override -
bindStorageTexture(
ShaderHandle shader, String name, TextureHandle texture, {int mipLevel = 0, StorageTextureAccess access = StorageTextureAccess.writeOnly}) → bool -
Binds level
mipLeveloftextureas the storage texturenameofshader. False when the stage declares no such binding.inherited -
bindTexture(
ShaderHandle shader, String slot, TextureHandle texture, {SamplerDescriptor? sampler}) → bool -
Binds
textureto the sampled-texture bindingslotofshader, withsampler(null meaningSamplerDescriptor.linearRepeat, as for a render pass). False when the stage declares no such binding.override -
bindUniformBlock(
ShaderHandle shader, String blockName, Map< String, Float32List> members) → bool -
Binds the uniform block
blockNameofshader, by member name, exactly asPassEncoder.bindUniformBlockdoes. False when the stage declares no such block.override -
bindUniformBytes(
ShaderHandle shader, String blockName, ByteData bytes) → bool -
Fills the uniform block
blockNameofshaderfrombytes, laid out the way the compiled stage lays the block out (std140 for the engine's bundles). For integer and packed members a float map cannot carry. False when the stage declares no such block.DeviceFeature.uniformBytes.inherited -
dispatch(
int x, [int y = 1, int z = 1]) → void -
Runs the bound pipeline over a grid of
x × y × zworkgroups.override -
dispatchIndirect(
StorageBuffer arguments, {int offsetInBytes = 0}) → void -
Runs the bound pipeline over the grid
argumentsholds atoffsetInBytes— seedispatchIndirectArgumentsfor the twelve bytes. The buffer must have been made with BufferUsage.indirect.DeviceFeature.indirectDispatch.inherited -
endPipelineStatisticsQuery(
) → void -
Stops the query beginPipelineStatisticsQuery opened.
inherited
-
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
-
submit(
) → void -
Hands the pass 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