feat: add nvidia offload script

This commit is contained in:
Flinner Yuu 2023-03-31 13:28:40 +03:00
parent 51eb11db16
commit 6ea2071b36
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
1 changed files with 7 additions and 0 deletions

7
bin/bin/nvidia-offload Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
exec "$@"