lib-viewport · crate

kinogaki-viewport-gpu

Libraryenvironment

Kinogaki's wgpu viewport renderer: pipelines, retained GPU buffers, offscreen multisampled targets and owned WGSL shaders.

Repository
lib-viewport (kinogaki/lib-viewport)
Folder
libs/lib-viewport/crates/gpu
Source
27 files, 7,366 lines
Tests
20 files, 2,219 lines

Also 6 shader or C files, 1,303 lines.

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

What it is

Kinogaki's wgpu viewport renderer: pipelines, retained GPU buffers, offscreen multisampled targets and owned WGSL shaders.

It draws kinogaki-viewport-core scenes — a SurfaceSource packet, an element selection, preview patches and overlay layers — into one texture per view. Camera or selection changes rewrite uniforms and small masks; derived packets upload only their changed ranges. It knows nothing about the geometry domain that produced a packet.

Depends on

CrateRepositoryAsWhat it is
kinogaki-geometrySDKnormalKinogaki Studio's standard geometry values.
kinogaki-mathlib-mathnormalKinogaki's vectors, points, matrices, quaternions and deterministic elementary functions.
kinogaki-viewport-corelib-viewportnormalKinogaki viewport core: what a 3D viewport shows, independent of any GPU API or UI toolkit.

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-geometry-viewCore and the apptestsGeometry, curves and B-reps in the viewport, independent of any GPU API: the SDK's standard values as surface packets (over the SDK's display triangulation and shading normals, so Solid draws what Render renders), the one picker that answers rays and boxes ...

Modules

Public types and traits

At the crate root

Structs AnalysisSettingsDisplayOptionsDisplayTransformGridPlaneSceneSceneObjectTintsViewportRenderer

Enums ObjectStyleShading

Type aliases Placements

Re-exported from other crates

From wgpu (the crate)

By module: 11 public types and traits in 4 modules

gpu DisplayOptionsGridPlaneSceneViewportRenderer

gpu::display DisplayTransform

gpu::objects ObjectStylePlacementsSceneObjectTints

shading AnalysisSettingsShading