GpuCaps class final
What a GpuDevice can do. Read once when the device is created; the renderer chooses its paths (HDR, MSAA, skinning, compression) from it.
Constructors
-
GpuCaps({required String backend, required GpuFormat colorFormat, required GpuFormat depthFormat, required bool msaa, required bool renderToMipLevel, required bool manualMipLevels, required int maxAnisotropy, required int uniformAlignment, required Set<
GpuCompression> compression, required bool hdrRenderTarget, required bool floatTextures}) -
Capabilities as measured by a backend.
const
Properties
- backend → String
-
Which backend:
flutter_gpuornull.final - colorFormat → GpuFormat
-
The format presentable surfaces use.
final
-
compression
→ Set<
GpuCompression> -
Compression families the device can sample.
final
- depthFormat → GpuFormat
-
The depth-stencil format attachments use.
final
- floatTextures → bool
-
Whether
rgba32ftextures can be created and sampled (joint palettes).final - hashCode → int
-
The hash code for this object.
no setterinherited
- hdrRenderTarget → bool
-
Whether
rgba16fcan be rendered into (HDR).final - manualMipLevels → bool
-
Whether textures with hand-uploaded mip levels sample correctly.
final
- maxAnisotropy → int
-
Largest anisotropy a sampler can use (1 = none).
final
- msaa → bool
-
Whether offscreen 4x MSAA works.
final
- renderToMipLevel → bool
-
Whether a non-zero mip level can be a render target (false on OpenGL
ES): when false, mip chains must be built on the CPU or at import.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uniformAlignment → int
-
Byte alignment of uniform data inside a buffer.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited