beginComputePass method
Opens a compute pass; label names it to a debugger and to
gpuTimings. timestampWrites (since 1.0) names where the pass
writes its start and end GPU times — DeviceFeature.timestampQuery.
Implementation
@override
ComputeEncoder beginComputePass({
String? label,
PassTimestampWrites? timestampWrites,
}) {
_require(DeviceFeature.compute);
if (timestampWrites != null) _require(DeviceFeature.timestampQuery);
return _MaskedCompute(
this,
inner.beginComputePass(label: label, timestampWrites: timestampWrites),
);
}