#Way to force disable specified extensions

7 messages · Page 1 of 1 (latest)

gaunt pelican
#

Was wondering if there is some way to force disable an extension from being advertised by the loader (such as though an environment variable).

whole ibex
#

but... why?

gaunt pelican
#

wgpu exhibited a bug when running under renderdoc, which does not support Wayland (so it does not advertise that extension). But wgpu assumes it is there if the library user provides a wayland window handle.

But in order to test my fix works, I need to force the loader to not advertise the wayland extension

#

Although I could just not ask wgpu to request the extension then...

whole ibex
#

The loader has no built in mechanism to remove extensions.
However, renderdoc is a layer and so layers are capable of interception vkEnumerateInstance|DeviceExtensionProperties and removing/adding/changing any and all of the data

#

you could even 'enable' the renderdoc layer manually and see if it removes the wayland extension

gaunt pelican
#

I've already proven that renderdoc removes the wayland extension via earlier debugging