Modules and imports

Workbench ships miskeyed.ui, miskeyed.time, miskeyed.viewport_camera, miskeyed.render_toy, and miskeyed.shader_toy. Import only contracts a program uses:

import miskeyed.ui;
import miskeyed.time;

The built-ins have two categories:

Host contracts

miskeyed.time, miskeyed.viewport_camera, miskeyed.render_toy, and miskeyed.shader_toy describe values or resources supplied at Workbench’s workspace, session, or render-surface edges.

Library/language support

miskeyed.ui declares reflection metadata attributes and needs no runtime host state.

Slang owns import semantics and program composition. Workbench exposes packaged sources through ISlangFileSystem and supplies project search paths. It watches resolved project files; semantic catalog metadata exists only for packaging and the Host / Slang Inspector. It is neither a parallel resolver nor a service locator.

The Inspector compares this catalog with dependencies actually loaded by Slang, so Available and Imported remain distinct. See Host Features and Slang Modules for the complete mental model.

Implementation

Relevant source: shaders/workbench/, WorkbenchModules.cpp, and SlangCompiler.cpp.