|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
donner::geode::GeodeWgpuAdapterDevice - the wgpu-backed donner::gpu::Device adapter.
More...
#include <atomic>#include <chrono>#include <cstdint>#include <memory>#include <span>#include <string_view>#include <vector>#include <webgpu/webgpu.hpp>#include "donner/gpu/Device.h"#include "donner/svg/renderer/geode/GeodeWgpuUtil.h"Classes | |
| class | donner::geode::GeodeWgpuAdapterDevice |
Implements donner::gpu::Device on top of the wgpu device a GeodeDevice already owns, so Geode subsystems can migrate onto the Donner GPU runtime one at a time while the process still renders through wgpu underneath. More... | |
| struct | donner::geode::GeodeWgpuAdapterDevice::MappingSlot::Completion |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Functions | |
| gpu::TextureFormat | donner::geode::GpuTextureFormatFromWgpu (wgpu::TextureFormat format) |
Maps a wgpu render-target format onto the donner::gpu format enum. | |
| gpu::TextureUsage | donner::geode::GpuTextureUsageFromWgpu (wgpu::TextureUsage usage) |
Maps wgpu texture usage flags onto the donner::gpu usage flags. | |
donner::geode::GeodeWgpuAdapterDevice - the wgpu-backed donner::gpu::Device adapter.
TEMPORARY transition adapter. It is deleted per-platform as each native backend takes over production rendering, and each escape hatch below is deleted with the change that migrates its last caller.
| gpu::TextureFormat donner::geode::GpuTextureFormatFromWgpu | ( | wgpu::TextureFormat | format | ) |
Maps a wgpu render-target format onto the donner::gpu format enum.
Halts (release assert) on formats outside the runtime's supported set - RGBA8Unorm, BGRA8Unorm, R8Unorm - which are the only formats Geode's shaders and render targets are built for.
| format | wgpu texture format to map. |
| gpu::TextureUsage donner::geode::GpuTextureUsageFromWgpu | ( | wgpu::TextureUsage | usage | ) |
Maps wgpu texture usage flags onto the donner::gpu usage flags.
Flags with no runtime equivalent are dropped, so the result describes exactly the capabilities the runtime can express for the texture.
| usage | wgpu usage flags to map. |