Function ul_sys::ulPlatformSetGPUDriver[][src]

pub unsafe extern "C" fn ulPlatformSetGPUDriver(
    gpu_driver: ULGPUDriver
)
Expand description

Set a custom GPUDriver implementation.

This should be used if you have enabled the GPU renderer in the Config and are using ulCreateRenderer() (which does not provide its own GPUDriver implementation).

The GPUDriver interface 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.

You should call this before ulCreateRenderer().