gpu library

Flutter GPU is a low level API for building rendering packages from scratch.

To use, first add an SDK dependency in your pubspec.yaml file:

dependencies:
  flutter_gpu:
    sdk: flutter

And then add an import statement in your Dart files:

import `package:flutter_gpu/gpu.dart`;

See also:

Classes

BufferView
A reference to a byte range within a GPU-resident Buffer.
ColorAttachment
ColorBlendEquation
CommandBuffer
DepthStencilAttachment
DeviceBuffer
DeviceBuffer is a region of memory allocated on the device heap (GPU-resident memory).
GpuContext
A handle to a graphics context. Used to create and manage GPU resources.
HostBuffer
HostBuffer is a bump allocator that managed a DeviceBuffer block list.
RenderPass
RenderPipeline
RenderTarget
SamplerOptions
Scissor
Shader
ShaderLibrary
StencilConfig
Texture
UniformSlot

Enums

BlendFactor
BlendOperation
CompareFunction
CullMode
IndexType
LoadAction
MinMagFilter
MipFilter
PixelFormat
PolygonMode
PrimitiveType
SamplerAddressMode
ShaderStage
StencilFace
StencilOperation
StorageMode
Specifies where an allocation resides and how it may be used.
StoreAction
TextureCoordinateSystem
WindingOrder

Properties

gpuContext GpuContext
The default graphics context.
final

Typedefs

CompletionCallback<T> = void Function(bool success)