FeatureName


class FeatureName


An enumeration of optional features that a device may support.

Summary

Constants

const Int

Support for using @see TextureFormat.BGRA8Unorm as a storage texture.

const Int

Allows usage of clip distances in shaders.

const Int

Represents the baseline set of WebGPU features and limits.

const Int

Support for @see TextureFormat.Depth32FloatStencil8 texture format.

const Int

Allows disabling depth clipping.

const Int

Allows blending with a second source color output from a fragment shader.

const Int

Allows blending on 32-bit float render targets.

const Int

Allows filtering of 32-bit float textures.

const Int

Support for firstInstance parameter in indirect draw calls.

const Int

Enables the primitive index feature, allowing fragment shaders to read the index of the geometric primitive being rasterized.

const Int

Support for rendering to @see TextureFormat.RG11B10Ufloat textures.

const Int

Support for 16-bit floating-point types in WGSL.

const Int

Support for shader subgroup operations.

const Int

Enables the creation of texture views with a defined component swizzle, allowing the remapping of the R, G, B, and A components during sampling.

const Int

Support for ASTC compressed texture formats.

const Int

Support for sliced 3D ASTC compressed texture formats.

const Int

Support for BC compressed texture formats.

const Int

Support for sliced 3D BC compressed texture formats.

const Int

Support for ETC2 compressed texture formats.

const Int
const Int
const Int

Support for timestamp queries.

Public companion functions

String
toString(value: Int)

Constants

BGRA8UnormStorage

const val BGRA8UnormStorage = 13: Int

Support for using @see TextureFormat.BGRA8Unorm as a storage texture.

ClipDistances

const val ClipDistances = 16: Int

Allows usage of clip distances in shaders.

CoreFeaturesAndLimits

const val CoreFeaturesAndLimits = 1: Int

Represents the baseline set of WebGPU features and limits.

Depth32FloatStencil8

const val Depth32FloatStencil8 = 3: Int

Support for @see TextureFormat.Depth32FloatStencil8 texture format.

DepthClipControl

const val DepthClipControl = 2: Int

Allows disabling depth clipping.

DualSourceBlending

const val DualSourceBlending = 17: Int

Allows blending with a second source color output from a fragment shader.

Float32Blendable

const val Float32Blendable = 15: Int

Allows blending on 32-bit float render targets.

Float32Filterable

const val Float32Filterable = 14: Int

Allows filtering of 32-bit float textures.

IndirectFirstInstance

const val IndirectFirstInstance = 10: Int

Support for firstInstance parameter in indirect draw calls.

PrimitiveIndex

const val PrimitiveIndex = 21: Int

Enables the primitive index feature, allowing fragment shaders to read the index of the geometric primitive being rasterized.

RG11B10UfloatRenderable

const val RG11B10UfloatRenderable = 12: Int

Support for rendering to @see TextureFormat.RG11B10Ufloat textures.

ShaderF16

const val ShaderF16 = 11: Int

Support for 16-bit floating-point types in WGSL.

Subgroups

const val Subgroups = 18: Int

Support for shader subgroup operations.

TextureComponentSwizzle

const val TextureComponentSwizzle = 22: Int

Enables the creation of texture views with a defined component swizzle, allowing the remapping of the R, G, B, and A components during sampling.

TextureCompressionASTC

const val TextureCompressionASTC = 7: Int

Support for ASTC compressed texture formats.

TextureCompressionASTCSliced3D

const val TextureCompressionASTCSliced3D = 8: Int

Support for sliced 3D ASTC compressed texture formats.

TextureCompressionBC

const val TextureCompressionBC = 4: Int

Support for BC compressed texture formats.

TextureCompressionBCSliced3D

const val TextureCompressionBCSliced3D = 5: Int

Support for sliced 3D BC compressed texture formats.

TextureCompressionETC2

const val TextureCompressionETC2 = 6: Int

Support for ETC2 compressed texture formats.

TextureFormatsTier1

const val TextureFormatsTier1 = 19: Int

TextureFormatsTier2

const val TextureFormatsTier2 = 20: Int

TimestampQuery

const val TimestampQuery = 9: Int

Support for timestamp queries.

Public companion functions

toString

Added in 1.0.0-alpha05
fun toString(value: Int): String