InstanceFeatureName


class InstanceFeatureName


An enumeration of optional features that an instance may support.

Summary

Constants

const Int

Allows creating multiple devices from a single adapter.

const Int

Enables passing SPIR-V shaders to @see GPUDevice.createShaderModule via @see ShaderSourceSPIRV.

const Int

Enables the use of timeoutNS > 0 with @see GPUInstance.waitAny.

Public companion functions

String
toString(value: Int)

Constants

MultipleDevicesPerAdapter

const val MultipleDevicesPerAdapter = 3: Int

Allows creating multiple devices from a single adapter.

ShaderSourceSPIRV

const val ShaderSourceSPIRV = 2: Int

Enables passing SPIR-V shaders to @see GPUDevice.createShaderModule via @see ShaderSourceSPIRV.

TimedWaitAny

const val TimedWaitAny = 1: Int

Enables the use of timeoutNS > 0 with @see GPUInstance.waitAny.

Public companion functions

toString

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