lib-ui · crate

kinogaki-ui-wgpu

Libraryenvironment

kinogaki-ui drawn with wgpu.

Repository
lib-ui (kinogaki/lib-ui)
Folder
libs/lib-ui/crates/wgpu
Source
10 files, 3,133 lines
Tests
2 files, 63 lines

Also 3 shader or C files, 240 lines.

depends onused by tests alonedependencies for tests alone are listed below, not drawn

What it is

kinogaki-ui drawn with wgpu.

If you're targeting WebGL you also need to turn on the webgl feature of the wgpu crate:

You can control whether WebGL or WebGPU will be picked at runtime by configuring WgpuConfiguration::wgpu_setup. The default is to prefer WebGPU and fall back on WebGL.

Feature flags

Depends on

CrateRepositoryAsWhat it is
kinogaki-pnglib-imagenormalPNG images (ISO/IEC 15948, W3C PNG Third Edition) over kinogaki_deflate.
kinogaki-uilib-uinormalKinogaki UI: the immediate-mode UI framework Kinogaki applications are built on.

Third-party

Used by

CrateRepositoryAsWhat it is
kinogaki-editorCore and the appnormalKinogaki Studio's editor: the document and everything the window shows of it, as parts one frame borrows one by one.
kinogaki-harnessCore and the appnormalStudio's test harness: the real editor, its event routing and its background work, driven offscreen with only the packages a test names.
kinogaki-studioCore and the appnormalKinogaki Studio: the editor in a window, after the plugins load.
kinogaki-ui-shelllib-uinormalKinogaki UI's native shell: opens the windows, runs the winit event loop, turns window events into kinogaki_ui input, paints each frame with kinogaki-ui-wgpu and drives an App.

Modules

Public types and traits

At the crate root

Traits CallbackTraitCloneableDisplayHandle

Structs CallbackRendererRendererOptionsRenderStateScreenDescriptorSurfaceConfigTextureWgpuConfigurationWgpuSetupCreateNewWgpuSetupExisting

Enums AdapterLimitsSurfaceErrorActionWgpuErrorWgpuSetup

Type aliases NativeAdapterSelectorMethod

Re-exported from other crates

From wgpu (the crate)

By module: 22 public types and traits in 6 modules

capture CaptureErrorFrameScreen

capture::headless AppHeadless

capture::script PointScriptStep

pixel FrameUpscale

renderer CallbackCallbackTraitRendererRendererOptionsScreenDescriptorTexture

setup AdapterLimitsCloneableDisplayHandleNativeAdapterSelectorMethodWgpuSetupWgpuSetupCreateNewWgpuSetupExisting

Besides these, 8 public functions at module level.