cranpose-render-wgpu 0.9.7

GPU renderer for Cranpose scenes through wgpu
Documentation

Cranpose WGPU Renderer

cranpose-render-wgpu produces Cranpose scene output with wgpu. Platform-shell authors connect the renderer to a device, queue and surface. App authors usually select a renderer feature on cranpose and use AppLauncher.

WgpuRenderer::new accepts app font data. The host then supplies the WGPU device, queue and surface format:

use cranpose_render_wgpu::WgpuRenderer;

static APP_FONTS: &[&[u8]] = &[];
let renderer = WgpuRenderer::new(APP_FONTS);

Platform-shell authors call init_gpu and the render methods for GPU setup and frame presentation. The desktop shell and web shell show platform setup and surface presentation.

Default features are empty. backend-gles adds the GL-class backend on native targets. Web builds include the WebGL fallback. The optional embedded-default-font feature supplies the framework fallback font. App projects select WGPU with the renderer-wgpu feature on cranpose; the renderer-wgpu-gles feature also enables backend-gles for native builds.

See the WgpuRenderer API, the renderer architecture guide, the feature list and the crate source.