summary refs log tree commit diff
path: root/doc/builders/packages/opengl.section.md
diff options
context:
space:
mode:
authorCorbin Simpson <cds@corbinsimpson.com>2020-11-30 22:10:43 -0800
committerGitHub <noreply@github.com>2020-11-30 22:10:43 -0800
commit8c9c0eb38be4300b72b68af6a50d6468a0475501 (patch)
treea5c11cd07307844e6043bf4b1c943fb21f54826d /doc/builders/packages/opengl.section.md
parent1810623a7781c86ac3c0df81b9a8e361c8504af1 (diff)
downloadnixpkgs-8c9c0eb38be4300b72b68af6a50d6468a0475501.tar
nixpkgs-8c9c0eb38be4300b72b68af6a50d6468a0475501.tar.gz
nixpkgs-8c9c0eb38be4300b72b68af6a50d6468a0475501.tar.bz2
nixpkgs-8c9c0eb38be4300b72b68af6a50d6468a0475501.tar.lz
nixpkgs-8c9c0eb38be4300b72b68af6a50d6468a0475501.tar.xz
nixpkgs-8c9c0eb38be4300b72b68af6a50d6468a0475501.tar.zst
nixpkgs-8c9c0eb38be4300b72b68af6a50d6468a0475501.zip
doc/builders/packages/opengl: Convert to CommonMark. (#105485)
* doc/builders/packages/opengl: Convert to CommonMark.

* Update doc/builders/packages/opengl.section.md

NVIDIA™

Co-authored-by: Ryan Mulligan <ryan@ryantm.com>

* Update doc/builders/packages/opengl.section.md

NVIDIA™

Co-authored-by: Ryan Mulligan <ryan@ryantm.com>

Co-authored-by: Ryan Mulligan <ryan@ryantm.com>
Diffstat (limited to 'doc/builders/packages/opengl.section.md')
-rw-r--r--doc/builders/packages/opengl.section.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/builders/packages/opengl.section.md b/doc/builders/packages/opengl.section.md
new file mode 100644
index 00000000000..6866bf89221
--- /dev/null
+++ b/doc/builders/packages/opengl.section.md
@@ -0,0 +1,15 @@
+# OpenGL {#sec-opengl}
+
+OpenGL support varies depending on which hardware is used and which drivers are available and loaded.
+
+Broadly, we support both GL vendors: Mesa and NVIDIA.
+
+## NixOS Desktop
+
+The NixOS desktop or other non-headless configurations are the primary target for OpenGL libraries and applications. The current solution for discovering which drivers are available is based on [libglvnd](https://gitlab.freedesktop.org/glvnd/libglvnd). `libglvnd` performs "vendor-neutral dispatch", trying a variety of techniques to find the system's GL implementation. In practice, this will be either via standard GLX for X11 users or EGL for Wayland users, and supporting either NVIDIA or Mesa extensions.
+
+## Nix on GNU/Linux
+
+If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of `libglvnd` and `mesa.drivers` in `LD_LIBRARY_PATH`. For Mesa drivers, the Linux kernel version doesn't have to match nixpkgs.
+
+For proprietary video drivers you might have luck with also adding the corresponding video driver package.