Expand description
Logical graphics device.
§Device
This module exposes the Device
trait, which provides methods for creating
and managing graphics resources such as buffers, images and memory.
The Adapter
and Device
types are very similar to the Vulkan concept of
“physical devices” vs. “logical devices”; an Adapter
is single GPU
(or CPU) that implements a backend, a Device
is a
handle to that physical device that has the requested capabilities
and is used to actually do things.
Structs§
- Device
Lost - Error occurred caused device to be lost.
- Naga
Shader - Naga shader module.
Enums§
- Allocation
Error - Possible cause of allocation failure.
- Bind
Error - Error binding a resource to memory allocation.
- Creation
Error - Device creation errors during
open
. - MapError
- Error accessing a mapping.
- OutOf
Memory - Error allocating memory.
- Shader
Error - An error from creating a shader module.
- Shader
Module Desc - Source shader code for a module.
- Wait
Error - Error occurring when waiting for fences or events.
- WaitFor
- Specifies the waiting targets.
Traits§
- Device
- Logical device handle, responsible for creating and managing resources for the physical device it was created from.