frameData method

  1. @override
GpuBufferView frameData(
  1. ByteData data
)
override

Copies data into this frame's transient memory, aligned for use as uniforms, vertices or indices. A commands list made or submitted during the frame keeps it from being written again until the GPU has finished that list.

Implementation

@override
GpuBufferView frameData(ByteData data) {
  final view = _NullView(frameBytes, data.lengthInBytes);
  frameBytes += data.lengthInBytes;
  return view;
}