DX12mod

Changes Minecraft API render (OPENGL) to DX12

DX12 GL — Minecraft on Direct3D 12 (version 3.3.3)

Makes Minecraft render with DirectX 12 instead of OpenGL, without rewriting the game's renderer: the mod replaces the OpenGL library LWJGL loads with its own, which tracks OpenGL's state, translates the shaders (GLSL → HLSL) and draws with Direct3D 12. That is why it stays compatible with other mods and with shader packs. Each file is a single .jar with everything included.

NEW VERSION OF THE MOD : https://www.curseforge.com/minecraft/mc-mods/apirender

Requirements: Windows 10/11 64-bit · a Direct3D 12 capable GPU · one of these versions:

Minecraft / loader Java File
Forge 1.20.1 17 dx12gl-3.3.3r.jar
Forge 1.19.2 17 dx12gl-3.3.3r-forge-1.19.2.jar
NeoForge 1.21.1 21 dx12gl-3.3.3r-neoforge-1.21.1.jar
Forge 1.21.1 21 dx12gl-3.3.3r-forge-1.21.1.jar
Fabric 1.20.1 17 dx12gl-3.3.3r-fabric-1.20.1.jar (Fabric API recommended)

If your PC does not support Direct3D 12 or something fails at startup, the mod touches nothing and Minecraft keeps using plain OpenGL.

Which file to download

  • r (Release): the normal one, clean and without measurements. Use this one.
  • Dev (Beta): the same, plus a detailed log of what the mod does and what fails (dx12gl_d3d12.log, dx12gl_trace.txt and the dx12gl_dump folder). Use it when you report a bug and send those files.
  • -noxessfg: the same as the others but without Intel XeSS Frame Generation (libxess_fg.dll and libxell.dll). Everything else is included: DLSS, FSR 3, XeSS upscaling and FSR 3 frame generation. The changelog of those files explains how to add XeSS Frame Generation by hand.

Results

Measured on an RTX 2060 laptop. Your results may vary.

Scene OpenGL DirectX 12 (this mod)
Vanilla, 854x480, distance 12 185-191 FPS 570-690 FPS
Vanilla, 1080p, distance 32 ~60 FPS 134-150 FPS
With Embeddium, 854x480, distance 12 ~274 FPS ~1040 FPS
88 mobs + particles ~100 FPS ~250 FPS
  • The image is the same as with OpenGL, in all five versions.
  • Capped at 60 FPS, the processor uses the same as Minecraft with OpenGL and no mods (~15 W in the test).
  • With shader packs DirectX 12 uses less GPU per frame than OpenGL in my tests (BSL 5.6 vs 6.3 ms; Spooklementary 4.1 vs 4.5 ms). With Complementary at 60 FPS: same CPU, same or less VRAM and the same GPU power draw.

What's included

Renderer

  • Direct3D 12 drawing with the OpenGL calls applied on a separate worker thread (it uses one more CPU core).
  • Choose which GPU draws (useful on dual-GPU laptops), presentation cap (Auto = your monitor's refresh rate), "frames ahead" (latency vs. smoothness), memory use and FPS in the window title.
  • Save GPU (on by default): does not draw the frames the monitor will not show, nor anything while the window is minimized.
  • Upload memory grows and shrinks with actual use, and Embeddium/Sodium chunk geometry lives only on the GPU (about 1.3 GB less RAM with Complementary in my tests).
  • If the driver resets or the GPU changes, the mod rebuilds everything by itself and the game keeps running.
  • MSI Afterburner / RTSS overlays and screenshots (F2) work.

Upscaling and frame generation (the libraries come inside the jar)

  • Resolution upscaling: spatial (built in), AMD FSR 3, Intel XeSS and NVIDIA DLSS (RTX only), with quality presets and sharpness. It also works with shader packs (there the spatial upscaler is always used: the temporal ones left trails over the pack's image).
  • Without shader packs, upscaling pauses itself if it does not lower GPU time by at least 5 % (Minecraft spends very little per pixel); the settings screen says so.
  • Frame generation: FSR 3, or XeSS (cards with Shader Model 6.4: GTX 1000 / RX 5000 / Arc or newer; it brings its own low latency mode, XeLL). Also with shader packs.
  • Low latency: NVIDIA Reflex and AMD Anti-Lag 2.

Shader packs (Oculus / Iris)

  • Work out of the box: "Shader compatibility" is on by default. The first time, a pack's shaders are compiled in the background (fast DXC compile, then FXC at low priority) with a "Shader compilation" progress bar and a disk cache.
  • Tested: Complementary Reimagined, Spooklementary, BSL, Bliss, Hysteria, Photon (with colored lights), Alpha Piscium and Rethinking Voxels. Other packs may not work.
  • Compute shaders, storage buffers and images, geometry shaders, tessellation (emulated with a geometry shader), subgroup operations and indirect dispatch.

Other mods tested

  • Embeddium / Sodium, Distant Horizons (with and without shaders), Create (Flywheel), Xaero's Minimap / World Map, Grassier Grass (animated grass with shaders), ImmediatelyFast, Alloyium and Brute Force Rendering Culling Revived.

OpenGL 4.6 (experimental, off by default)

  • The "OpenGL" option chooses 3.3 (default, stable) or 4.6. With 4.6 the mod presents itself as a modern GPU and mods take their OpenGL 4.x paths: direct state access, indirect drawing, persistent mapping, SPIR-V and more. For example Create (Flywheel) switches to its indirect drawing with culling on the GPU. Applies on restart.

In-game settings

  • Options → Video Settings → "DirectX 12…" button. With Embeddium (1.20.1 and 1.21.1) there is also a "DirectX 12" page in its menu; with Embeddium for 1.19.2 or with Sodium, a "DirectX 12…" button at the bottom right of its video menu.
  • Hovering an option explains what it does and how it affects performance. English and Spanish text.
  • Everything is stored in dx12gl/config.properties (can also be edited by hand).

Installation

  1. Put the jar for your version in the instance's mods folder.
  2. Forge 1.20.1, Forge 1.21.1 and NeoForge: start the game once, close it and start it again. The first start only disables the loader's early loading window. Forge 1.19.2 and Fabric use DirectX 12 from the first start.
  3. Optional: Embeddium/Sodium and Oculus/Iris. Shader packs need nothing else: pick one in Oculus/Iris as usual.

Known limitations

  • Windows only. Versions older than 1.17 (1.16.5, 1.12.2) use fixed-function OpenGL, which the mod does not translate yet.
  • The first time a shader pack is used (or after updating the mod) its shaders are compiled: from a few seconds up to about a minute of high CPU use, during which part of the world may not be drawn.
  • DLSS needs an NVIDIA RTX GPU; XeSS and FSR 3 work on any GPU. Frame generation adds almost one frame of latency and can leave small artifacts; it is worth it from about 40-60 real FPS.
  • Not tested on an AMD Radeon card yet (shader pack pipelines are built in the background and cached for AMD). If you have one, please tell me how it goes.
  • The OpenGL 4.6 option is experimental. Missing: tessellation together with its own geometry shader, transform feedback objects, dvec3/dvec4 attributes, cubemaps as render targets and image arrays.
  • The jar is about 165 MB (about 152 MB for -noxessfg) because it carries the FSR, XeSS, DLSS and DXC libraries (they are copied to dx12gl/ automatically).

Licenses and credits

  • DX12 GL: LGPL-3.0-only. Author: thetiranix.
  • glslang (BSD-3-Clause and others) and SPIRV-Cross (Apache-2.0): linked inside the mod's DLL.
  • AMD FidelityFX / FSR 3 (MIT license, © Advanced Micro Devices, Inc.), AMD Anti-Lag 2 (MIT).
  • Intel XeSS, XeSS Frame Generation and XeLL (Intel license, © Intel Corporation). The -noxessfg files do not include XeSS Frame Generation or XeLL.
  • NVIDIA DLSS (NVIDIA RTX SDK license, © NVIDIA Corporation) and NVIDIA NVAPI / Reflex (MIT). DLSS is a trademark of NVIDIA.
  • Microsoft DirectX Shader Compiler v1.9.2609 (dxcompiler.dll: LLVM/NCSA with exception; dxil.dll: Microsoft software license terms; source: https://github.com/microsoft/DirectXShaderCompiler). Included unmodified, in binary form only, and by using this mod you accept their terms for those two files (among others: use on Windows only).
  • The full license texts are inside the .jar, in the licenses/ folder. Windows libraries (d3d12.dll, dxgi.dll, d3dcompiler_47.dll) are not included: they are the system's own.
  • This mod is not an official product of, nor endorsed by, Minecraft, Mojang, Microsoft, NVIDIA, AMD or Intel. Minecraft is a trademark of Mojang AB.

MADE IT AND OPTIMIZED FOR https://www.curseforge.com/minecraft/modpacks/path-of-ascension modpack
It can contain some bugs.

DX12mod Team

profile avatar
  • 1
    Followers
  • 3
    Projects
  • 896
    Downloads

More from Thetiranix

  • Path of Ascension Core project image

    Path of Ascension Core

    Native content of the Path of Ascension modpack: races, classes, elemental damage, skill tree, tiered crafting tables and divine bosses.

    • 98
    • October 28, 2026
  • Path of Ascension Core project image

    Path of Ascension Core

    Native content of the Path of Ascension modpack: races, classes, elemental damage, skill tree, tiered crafting tables and divine bosses.

    • 98
    • October 28, 2026