An open connection to a graphics and/or compute device.
The Device
is the responsible for the creation of most rendering and compute resources, as well as exposing Queue
objects.
Methods
createBufferWithFloat32Data(data:ReadOnlyArray<Float>, usage:BufferUsage):Buffer
Throws:
UseAfterDestroyException | If the instance was already destroyed. |
---|
createBufferWithUInt16Data(data:ReadOnlyArray<Int>, usage:BufferUsage):Buffer
Throws:
UseAfterDestroyException | If the instance was already destroyed. |
---|
createBufferWithUInt32Data(data:ReadOnlyArray<Int>, usage:BufferUsage):Buffer
Throws:
UseAfterDestroyException | If the instance was already destroyed. |
---|
createCommandEncoder(commandEncoderDescriptor:CommandEncoderDescriptor):CommandEncoder
Throws:
UseAfterDestroyException | If the instance was already destroyed. |
---|
createPipelineLayout(pipelineLayoutDescriptor:PipelineLayoutDescriptor):PipelineLayout
Throws:
UseAfterDestroyException | If the instance was already destroyed. |
---|
createRenderPipeline(renderPipelineDescriptor:RenderPipelineDescriptor):RenderPipeline
Throws:
UseAfterDestroyException | If the instance was already destroyed. |
---|
createShaderModule(data:ReadOnlyArray<Int>):ShaderModule
Throws:
UseAfterDestroyException | If the instance was already destroyed. |
---|
createShaderModuleFromFile(path:String):ShaderModule
Throws:
UseAfterDestroyException | If the instance was already destroyed. |
---|
createSwapChain(surface:Surface, swapChainDescriptor:SwapChainDescriptor):SwapChain
Throws:
UseAfterDestroyException | If the instance was already destroyed. |
---|
destroy():Void
Destroy the device.
Using the instance after this will throw a UseAfterDestroyException
exception.
Throws:
UseAfterDestroyException | If the instance was already destroyed. |
---|