Skip to content

GPU ​

Run and edit an actual example. Read the language reference and material language. Compare the input with captured result images.

@barocss/gpu compiles a bounded scene language, prepares display geometry, and provides original WebGL2 renderers for its admitted preview profiles. Its manifest version is 0.0.0.

Use the SDF path for a small scene of spheres, boxes and the explicit source1 primitives. Use the mesh path for a CAD PreviewPacket. Use the general Engine APIs for CPU geometry, hierarchy, rays, clips and binding preparation. These paths have different inputs and limits.

TaskStart here
Compile and display a small source sceneQuickstart
Convert a native Surface packet into scene unitsCAD mesh guide
Handle edits and resource cleanupUpdate guide
Choose an exported function or data typeAPI
Find a runnable repository hostExamples
Diagnose refusal or context lossLimits and errors

Typed generated source ​

Use Generated scene to compile the separate Source2 typed-parameter, finite-repeat and conditional-object profile. Its live example shows transformed diagnostic boxes from selected coefficients. The existing Source0/1 SDF renderers and original examples retain their stated source snapshot; this newer compiler does not add a Source2 mount or general Engine graphics runtime.

Source, mesh and image ​

A native CAD model retains authored geometry. A packet contains an approximate sampled mesh. A pose changes display placement. A rendered image contains pixels. Keep these records separate. A visible mesh does not certify a native Solid, and pixels cannot recover editable source.

The package's workspace root and /source entries both select src/index.ts. Use a TypeScript-capable transformer with normal package resolution. The complete publishConfig map selects emitted JavaScript and declarations for a separate built-package checkpoint. Local public configuration does not establish an npm release.

Current Engine boundary ​

The fixed parent exposes CPU Engine preparation and query APIs. It does not export the general Engine renderer from #1183 or its textured renderer from #1184. Their latest receipts describe prepared browser fixtures with actual graphics acceptance unrun. Do not use those isolated branches as an available public runtime.

Read the shared coordinate, ownership and version contracts before combining packages.


Source snapshot: local Git 5f5ad866205a21510ac69552e704cc162fa253b5. packages/barocss-gpu/package.json (Manifest; local source), packages/barocss-gpu/src/index.ts (public root; local source), packages/barocss-gpu/README.md (package README; local source). Source paths identify that fixed local snapshot. Local source is the authority for this manual.

Overview · Quickstart · Guides · API · Examples · Limits

Local manual snapshot. Availability is stated on each package page.