The Switch (NX)

The Switch runtime (src/nx/) plays Switch games. This page lists its layers, with the code and the documents of each. The documents of this folder describe the parts that only the Switch has. scarletnx takes every one of the common options but --output.

Layers

LayerCodeDocuments
LoaderXCI and NSP extraction (src/nx/runtime/driver/extract.c), NSO, NRO and NPDM (src/nx/loader/)Usage, NRO files
CPUAArch64 compiled ahead of time by the host's native back end (src/common/cpu/recompiler/), 32-bit code through the block compiler (src/common/cpu/arm/), a JIT for the code that the AOT build missed, and NCE on AArch64 hostsArchitecture, CPU plan, NCE, AOT packs
Kernel and HLEthe kernel and the SVCs (src/nx/hle/kernel/, hle/svc/, memory/), the services (hle/services/), the file system (hle/filesystem/), the hooks and the native SDK (nn/)IPC interfaces, Hooks, Filesystem, Networking, Memory accounting, Code memory
GPUNVN (src/nx/gpu/nvn/) and the Maxwell front end (src/nx/gpu/maxwell/), Maxwell shaders to SPIR-V (gpu/shader/), the Vulkan renderer (gpu/vk/)NVN, GPU-owned guest memory, ASTC, Block linear, BCn without BCn
Videohost1x, NVDEC with FFmpeg, and VIC (src/nx/gpu/video/)VIC
Audiothe audio outs, the audio ins, the audio device, the audio renderer's and the hardware Opus decoder's functions, answered in the SDK's own (src/nx/nn/audio.c, audio_renderer.c, codec.c and their .hook), the renderer itself (hle/services/audren.c, audren_dsp.c), the Opus decoding on FFmpeg (hle/services/audio.c)none yet
Inputhid (hle/services/hid.c, hid_touch.c, hid_motion.c), SDL gamepads (runtime/platform/backend/gamepad.c), the on-screen controlsUsage, Playing, Settings
Platformthe window or headless run, the menu in the game and the shader screen (src/nx/runtime/platform/), and the host layer that every driver shares (src/common/platform/)Architecture, the host systems

Made from docs/platforms/nx/README.md at 69237645142c. GPL-3.0-or-later.