Windows is the primary development platform for Prisma Engine. The engine ships with a DirectX 12 rendering backend as the Windows default, and Vulkan is available as an opt-in alternative. The editor — an ImGui-based scene inspector — is built on Windows by default and uses the Vulkan backend when theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Excurs1ons/PrismaEngine/llms.txt
Use this file to discover all available pages before exploring further.
PRISMA_BUILD_EDITOR flag is set. All three build targets (engine, editor, runtime) are covered by CMake presets that work from the command line or directly from Visual Studio 2022.
Requirements
Install the following tools before building.- Windows 10 or later — Windows 11 recommended for DirectX 12 feature level 12_2
- Visual Studio 2022 — with the “Desktop development with C++” workload (includes MSVC and CMake integration)
- CMake 3.20 or later — bundled with Visual Studio 2022, or install separately
- Vulkan SDK — required if you enable the Vulkan backend via
PRISMA_ENABLE_RENDER_VULKAN
Available presets
All Windows presets target thex64 architecture and use the Visual Studio 17 2022 generator.
| Preset name | Target | Config |
|---|---|---|
engine-windows-x64-debug | Engine | Debug |
engine-windows-x64-release | Engine | Release |
editor-windows-x64-debug | Editor | Debug |
editor-windows-x64-release | Editor | Release |
runtime-windows-x64-debug | Runtime | Debug |
runtime-windows-x64-release | Runtime | Release |
Build commands
- CMake presets (recommended)
- Visual Studio 2022
Run configure and build as two separate steps. The preset name is the same for both.Build output lands in
build/<preset-name>/. For example, the release editor outputs to build/editor-windows-x64-release/.Rendering backends
DirectX 12 (default)
DirectX 12 is the primary rendering backend on Windows. It is enabled by default for all Windows presets via thePRISMA_ENABLE_RENDER_DX12 CMake option. No extra SDK installation is required beyond the Windows SDK that ships with Visual Studio.
resources/common/shaders/hlsl/.
Vulkan (opt-in)
Vulkan is available on Windows and is the backend used by the editor target. Enable it by settingPRISMA_ENABLE_RENDER_VULKAN=ON. You must have the Vulkan SDK installed and VULKAN_SDK set in your environment.
resources/common/shaders/glsl/. The Vulkan adapter lives in src/engine/graphic/adapters/vulkan/.
The editor preset (
editor-windows-x64-debug / editor-windows-x64-release) enables Vulkan automatically. The ImGui debug overlay requires the Vulkan backend to be active.Key CMake flags
Pass these via-D after the preset name to override defaults.
| Flag | Description | Default |
|---|---|---|
PRISMA_BUILD_EDITOR | Include the ImGui editor application | ON (editor presets only) |
PRISMA_ENABLE_RENDER_DX12 | Enable the DirectX 12 rendering backend | ON (Windows) |
PRISMA_ENABLE_RENDER_VULKAN | Enable the Vulkan rendering backend | OFF (Windows base, ON for editor) |
PRISMA_BUILD_SHARED_LIBS | Build the engine as a shared (.dll) library | ON (debug), OFF (release) |
PRISMA_ENABLE_IMGUI_DEBUG | Enable ImGui debug overlays | ON (debug builds) |
PRISMA_USE_NATIVE_AUDIO | Use XAudio2 instead of SDL3 audio | ON |
PRISMA_USE_NATIVE_INPUT | Use XInput instead of SDL3 input | ON |
Conditional compilation
Engine modules are gated by preprocessor defines that mirror the CMake flags. Use these guards in your own code when writing Windows-specific logic:PRISMA_ENABLE_* options are defined in cmake/DeviceOptions.cmake.