Aperture UI
Getting started

Requirements

The toolchain, platforms, graphics backend, runtime files and build settings you need to integrate Aperture UI.

Toolchain

Aperture UI is a C++17 library, and its public headers need a C++17 compiler.

On Windows the SDK is built with MSVC. The engine DLLs export C++ classes and ship MSVC import libraries, so build your game with Visual Studio 2022 or later. Shipping and Dev packages import MSVCP140.dll, VCRUNTIME140.dll and VCRUNTIME140_1.dll, which is the release C++ runtime, so compile your game against it (/MD), including in its debug configuration. A Debug package imports the debug runtime instead. The package does not contain the Visual C++ runtime, so install the Visual C++ Redistributable (x64) with your game.

Using the SDK does not require CMake. The package includes a CMake config for projects that use it (see Build system). Building the engine from source needs CMake 3.20 or newer.

Platforms

PlatformWhere it stands
Windows, x64The platform these docs describe. The engine's packaging step (package_runtime_build) produces the Windows package, and the engine DLLs are x64 images.
PlayStation 5, Xbox Series X|S, Xbox OneConsole packages appear in your portal's Downloads list after your company's console access is approved. The platform holders' NDAs cover console build steps and graphics APIs, so this site does not publish them. See Licensing in practice.
Linux x64, FreeBSD x64The licensing system accepts both as platforms (linux64 and freebsd64), and the build system has a Linux configuration. This site documents no package for either.
PlayStation 4, Nintendo SwitchThe portal can issue console certificates for both, but the engine's build system has no target that produces either yet. Contact contact@wdstudios.tech before you plan around them.

Graphics

Aperture UI does not create a GPU device, a swap chain or a window. Your title supplies a render context that draws the command list the view produces. The package includes the base class (SimpleAPHIRenderContext) and the shaders the reference backends use (shaders/). Writing a backend for your graphics API is a substantial job. See Rendering backends.

APPlayer's D3D11 and Vulkan contexts are the reference backends. APPlayer is part of the engine source, which the Source add-on gives you read access to, and the download does not contain it. D3D11 is the default, and Vulkan is built when the Vulkan SDK is present. The Unreal plugin and the O3DE gem bring their own integration with those engines' renderers.

Runtime files

These files come from the package's bin/ folder. Put them next to your executable or on the DLL search path. The authoritative list is whatever the packaging step wrote into your package, so copy bin/ as it is rather than maintaining this list by hand.

FilePurpose
apertureuihtmlengine.dllThe engine: HTML, CSS, DOM, layout, paint and JavaScript bindings
apertureuiharrlowengine.dllCommand lists, batching and the render context base classes
wdtier0.dll, Texture.dllFoundation (memory, threading, logging) and image and texture loading
v8.dll, v8_libbase.dll, v8_libplatform.dll, cppgc.dll, zlib.dllV8, the JavaScript engine
icuuc.dll, icui18n.dllV8's copy of ICU
icudt_apui.dll, icuin_apui.dll, icuuc_apui.dllThe engine's own copy of ICU
ogg.dll, opus.dll, vorbis.dll, vorbisenc.dll, vorbisfile.dllAudio codecs, used with video
resources/snapshot_blob.binV8 startup snapshot
resources/icudtl.datV8's ICU data. Startup validation looks for this file, so it must be present.
resources/v8_icudtl.datThe same ICU data. When it is present, ICU loads this file instead, so another library's icudtl.dat in the same folder cannot replace it.

Keep resources/ beside the executable, or tell the engine where it is (see Your first view). Bring all of bin/ from the same package together: the V8 snapshot, the ICU data and the DLLs belong to one build.

Text needs fonts. Copy the package's data/ folder next to your executable so the bundled fallback fonts in data/Base/Fonts are found. Without them the engine logs a warning that text may not render. Fonts your pages load through @font-face come from your own content.

The PartialCore build

PartialCore is a source build filter, not a complete description of a downloaded SDK's features. The 26.08.0.1 Windows package uses that filter with the network-enabled SDK configuration:

  • DevTools is included and listens when your host starts it. The package includes apertureuideveloperengine.dll, apertureuinetwork.dll, and the frontend.
  • Video decoding is not compiled into 26.08.0.1. The source video stack requires an APUI_HAS_VIDEO build. Codec DLLs in bin/ alone do not enable <video>.
  • zstd.dll is optional. Its presence depends on the Foundation build.

A custom PartialCore build without NS_APUI_BUILD_UNREAL_SDK=ON still uses the stub DevTools network implementation. Do not infer server availability from the filter name alone.

Optional modules

FileAdds
apertureuinetwork.dll, libcrypto-3-x64.dll, libssl-3-x64.dllDefaultNetworkProvider: HTTP, HTTPS and WebSocket for fetch(), XMLHttpRequest, WebSocket and loadHtmlFromUrl(). Register it with IAPCPlatform::SetNetworkProvider. Without a provider the engine has no network.
apertureuideveloperengine.dllThe included Chrome DevTools Protocol server. It imports apertureuinetwork.dll, so ship that with it. Your host starts it. Keep it out of builds you give to players: it opens a debugging port.

Build system

The 26.08.0.1 package includes cmake/ApertureUIConfig.cmake. Its imported targets export the platform include directory, DLL definitions, and the SDK build configuration:

find_package(ApertureUI REQUIRED PATHS "path/to/RuntimeBuild")
add_executable(MyGame main.cpp)
target_compile_features(MyGame PRIVATE cxx_std_17)
target_link_libraries(MyGame PRIVATE ApertureUI::ApertureUI)

Keep the package's headers, import libraries and runtime DLLs together. The SDK configuration controls public Foundation layouts; a Shipping SDK remains Shipping when linked into a development host. Use the configuration in MANIFEST.md, rather than replacing it with your host's build name.

Two headers need one more definition. APHTML/Font/FontEngineBridge.h and APHarrlow/VectorEngine/Core/Text.hpp (the glyph atlas) include FreeType unless LINAVG_DISABLE_TEXT_SUPPORT is defined. The engine is built with it set to 1 and does not pass it on, so define it in a project that includes either header. A project that includes neither does not need it.

Without CMake, compile with /std:c++17, add include/ and include/Foundation/Platform/Win to the include path, define BUILDSYSTEM_COMPILE_ENGINE_AS_DLL, BUILDSYSTEM_BUILDTYPE="Shipping" and BUILDSYSTEM_BUILDTYPE_Shipping for the Shipping SDK, and link apertureuihtmlengine.lib, apertureuiharrlowengine.lib and wdtier0.lib from lib/ (the three that ApertureUI::ApertureUI links).

The individual targets are ApertureUI::HTMLEngine, ApertureUI::HarrlowEngine, ApertureUI::DeveloperEngine, ApertureUI::Network, ApertureUI::Foundation and ApertureUI::Texture. The config also sets APERTUREUI_BIN_DIR, APERTUREUI_DATA_DIR, APERTUREUI_SHADER_DIR and APERTUREUI_DEVTOOLS_DIR.

The imported targets do not copy DLLs. Stage bin/ and data/ next to your executable yourself:

add_custom_command(TARGET MyGame POST_BUILD
    COMMAND ${CMAKE_COMMAND} -E copy_directory "${APERTUREUI_BIN_DIR}" "$<TARGET_FILE_DIR:MyGame>"
    COMMAND ${CMAKE_COMMAND} -E copy_directory "${APERTUREUI_DATA_DIR}" "$<TARGET_FILE_DIR:MyGame>/data")

The package layout is described in Project structure.

On this page