Function ul_next::platform::set_gpu_driver
source · pub fn set_gpu_driver<G: GpuDriver + Send + 'static>(driver: G)
Expand description
Set a custom GPUDriver implementation.
This should be used if you have enabled the GPU renderer in the Config and are using
Renderer
(which does not provide its own GPUDriver implementation).
The GpuDriver trait is used by the library to dispatch GPU calls to your native GPU context
(eg, D3D11, Metal, OpenGL, Vulkan, etc.) There are reference implementations for this interface
in the AppCore
repo as well
as a custom implementation for glium
in glium
.
You should call this before Renderer::create
.