Feature
- Over
Int
A capability that only some backends support. GpuDevice.features lists the features a device has, and GpuDevice.open skips backends that lack the ones in required. A call that lacks a feature throws and names the feature and the backend.
Values
Compute = 1Compute pipelines and passes. Not on GLES or WebGL2.
StorageTextures = 2Textures that shaders write, created with
TextureUsage.Storage.TextureWrites = 4Writing texture contents from the CPU with
GpuDevice.writeTexture.IndexedDraws = 8RenderPass.setIndexBufferanddrawIndexed.BindingOffsets = 16Binding part of a buffer in a bind group: a non-zero offset, or a size smaller than the rest of the buffer.
MultipleVertexBuffers = 32A render pipeline reading vertices from more than one buffer.
BufferCopies = 64InstanceVertexBuffers = 256Vertex buffers that step once per instance, set with
VertexBufferLayout.perInstance.PipelineConstants = 128Setting a shader's
@constvalues when a pipeline is created. Without it, they are fixed at compile time.Presentation = 512Presenting to a window or the web page's canvas through a
GpuSurface.
Fields and methods
final all:Array<Feature>Every feature, in the order Features.toString lists them.
function toString():String