The desktop-launch script for that toolkit will also take care of GPU library configuration. If your application uses GTK, Qt, or another desktop toolkit, then follow the instructions for that toolkit. The desktop helpers project provides scripts that do additional setup to ensure toolkits, audio stacks and graphics drivers are correctly configured when your application starts. Graphical applications and GPU libraries require environment configuration to function correctly. Add this to the stage-packages of the part of your application. All that is typically required is the libglu1-mesa package. You need to include the appropriate user space “drivers” in the snap to expose OpenGL/GPU capabilities.
Permitting access using the opengl interface.Initialising those libraries before your application starts.Including additional user space GPU libraries.
Typically, snapped applications require three things to make this possible. Some applications and games require access to OpenGL, Vulkan or GPU(s).