GpuContext class abstract interface

Properties

defaultColorFormat → PixelFormat
no setter
defaultDepthStencilFormat → PixelFormat
no setter
doesSupportOffscreenMSAA → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
maxSamplerAnisotropy → int
no setter
minimumUniformByteAlignment → int
no setter
rowsUp → bool
Whether 2D render targets and the frame are drawn with their first row at the bottom, as in GL and WebGL; false where it is at the top (Flutter GPU). Cube map faces have their first row at the top either way.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCommandBuffer() → CommandBuffer
createDeviceBuffer(StorageMode storageMode, int sizeInBytes) → DeviceBuffer
createDeviceBufferWithCopy(ByteData data) → DeviceBuffer
createRenderPipeline(Shader vertexShader, Shader fragmentShader, {VertexLayout? vertexLayout}) → RenderPipeline
createTexture(StorageMode storageMode, int width, int height, {PixelFormat format = PixelFormat.r8g8b8a8UNormInt, int sampleCount = 1, TextureType? textureType, bool enableRenderTargetUsage = true, bool enableShaderReadUsage = true, int mipLevelCount = 1}) → Texture
maxMipLevelCount(int width, int height) → int
The most mip levels a texture of width × height can have: down to 1 × 1 where the GPU interface allows, as in WebGL.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
supportsTextureFormat(PixelFormat format, {bool renderTarget = false, bool shaderRead = true}) → bool
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited