MLBufferResourceView constructor

MLBufferResourceView({
  1. required GPUBuffer resource,
  2. int? offset,
  3. int? size,
})

Implementation

factory MLBufferResourceView(
        {required GPUBuffer resource, int? offset, int? size}) =>
    MLBufferResourceView._(
        resource: resource, offset: offset ?? 0, size: size ?? undefined);