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 RASMGetting started, Engine and Renderer
use RASM from C, Python, C#, Rust or ZigThe 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, pointsvector features
name places on a map: labels that never overlaplabels
select what the mouse is over: an object, a road, a point on the groundpick
show a reference grid, or CAD views that pan and zoom (orthographic)setCameraGrid
draw a point cloud (LiDAR, a scan) colored by a valuebuildPointCloudChunk, createColormap
draw a vector field, particles or markers: a shape per data point, colored by a value, and streamlinesbuildGlyphChunk, 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 viewBlendMethod, Material::blendMethod
save a still far larger than the screen (8K, 16K, a print poster) as a PNG or an EXRexportView, ExportDesc
stream a LAS or LAZ scan bigger than GPU memoryloadPointCloud, buildPointCloudOctree
draw terrain from height map tilescreateTerrainTile
stream a map or an open world under a memory budgetTileStreamer
add a render pass or post effectRender graph and custom passes
make the image brighter or darker, or change how bright lights lookaddToneMapPass, setCameraExposure
smooth jagged edgesEngineConfig::antiAliasing, addMsaaResolvePass
smooth edges, thin lines and highlights over framesaddTaaPass, resetCameraHistory
make bright lights glowaddBloomPasses, setCameraBloomStrength
light a scene with a sky photo, show the sky behind itloadEnvironment, setSceneEnvironment
add shadows to a sceneView::shadows, addScenePasses
give each view of a split screen, a map or an editor its own shadowsView::shadows, rasm_view's shadows from C
show debug views or a GPU buffer from C, Python, C#, Rust or Zigrasm_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 animationsplayAnimation 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 applicationsetMorphWeights
see normals, UVs, overdraw, LODs, culling, light counts or meshlets on screensetDebugView, setCullingFrozen
look at a render target, a depth, a Hi-Z level, the light clusters or an entity's GPU table rows while it runssetInspection
show several views at once: split screen, a map in the corner, editor viewports, a camera's picture on a TV or in the UIrender(views, count), View
move cameras with your own input, or several cameras at onceDrive a camera yourself
add debug windows, sliders or tool panels to an appUI with Dear ImGui, setUiCallback
draw only the visible parts of big, dense meshessetMeshletPath
load without slowing the frames: copies on the GPU's copy engineEngineConfig::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.

Reading these pages

Open docs/index.html in a browser. The pages need no server and no build. They work offline.