Documentation
RASM docs
RASM (رسم) is a GPU-driven rendering engine in C++20, with a Vulkan 1.4 backend and Slang shaders. The documentation has two parts: the API reference, to build applications with RASM, and the guides, to learn how it works inside.
API reference
Everything an application uses: the C++ API in include/rasm/, and the C API for other languages.
Find the API for a task
| You want to… | Read |
|---|---|
| write an app with RASM | Getting started, Engine and Renderer |
| use RASM from C, Python, C#, Rust or Zig | The C API |
| build the frame from C, Python, C#, Rust or Zig, with passes of your own (a post effect, a compute pass) | The C API's render graph, rasm_render_graph_add_pass |
| draw map vector data: roads, lakes, points | vector features |
| name places on a map: labels that never overlap | labels |
| select what the mouse is over: an object, a road, a point on the ground | pick |
| show a reference grid, or CAD views that pan and zoom (orthographic) | setCameraGrid |
| draw a point cloud (LiDAR, a scan) colored by a value | buildPointCloudChunk, createColormap |
| draw a vector field, particles or markers: a shape per data point, colored by a value, and streamlines | buildGlyphChunk, GlyphMaterial, addVectorLines |
| draw dense see-through data (nested iso-surfaces, volume slices, see-through parts, glyphs) in any order, or add light for an X-ray view | BlendMethod, Material::blendMethod |
| save a still far larger than the screen (8K, 16K, a print poster) as a PNG or an EXR | exportView, ExportDesc |
| stream a LAS or LAZ scan bigger than GPU memory | loadPointCloud, buildPointCloudOctree |
| draw terrain from height map tiles | createTerrainTile |
| stream a map or an open world under a memory budget | TileStreamer |
| add a render pass or post effect | Render graph and custom passes |
| make the image brighter or darker, or change how bright lights look | addToneMapPass, setCameraExposure |
| smooth jagged edges | EngineConfig::antiAliasing, addMsaaResolvePass |
| smooth edges, thin lines and highlights over frames | addTaaPass, resetCameraHistory |
| make bright lights glow | addBloomPasses, setCameraBloomStrength |
| light a scene with a sky photo, show the sky behind it | loadEnvironment, setSceneEnvironment |
| add shadows to a scene | View::shadows, addScenePasses |
| give each view of a split screen, a map or an editor its own shadows | View::shadows, rasm_view's shadows from C |
| show debug views or a GPU buffer from C, Python, C#, Rust or Zig | rasm_set_debug_view, rasm_set_inspection |
| draw Dear ImGui windows from C, Python, C#, Rust or Zig with the binding's own ImGui (cimgui, ImGui.NET, imgui-rs) | Dear ImGui from another language, rasm_set_ui_callback |
| play a glTF model's animations | playAnimation and setAnimationTime |
| play a skinned glTF character (joints and weights) | playAnimation and setAnimationTime |
| blend a glTF mesh between shapes (morph targets), from a clip or from the application | setMorphWeights |
| see normals, UVs, overdraw, LODs, culling, light counts or meshlets on screen | setDebugView, setCullingFrozen |
| look at a render target, a depth, a Hi-Z level, the light clusters or an entity's GPU table rows while it runs | setInspection |
| show several views at once: split screen, a map in the corner, editor viewports, a camera's picture on a TV or in the UI | render(views, count), View |
| move cameras with your own input, or several cameras at once | Drive a camera yourself |
| add debug windows, sliders or tool panels to an app | UI with Dear ImGui, setUiCallback |
| draw only the visible parts of big, dense meshes | setMeshletPath |
| load without slowing the frames: copies on the GPU's copy engine | EngineConfig::transferQueue |
Guides
Each guide explains one technique on its own, with pictures first, and ends with an "In RASM" part that shows what the engine does and where in the code. Start with the tour, or open the guide index for the map of the engine, the guides by topic and the full list.
Project docs
These Markdown files hold the full technical record. The pages above are the friendly way in; these are the reference.
- architecture.md — every detail of how the engine works today.
- code_review.md — known bugs and design issues, by ID (
B1,D4, …). - development_plan.md — the roadmap.
- coding_style.md and build_guide.md.
Open docs/index.html in a browser. The pages need no server and no build. They work offline.