@@ -49,6 +49,7 @@ package("imgui")
4949 add_configs (" sdl2_renderer" , {description = " Enable the sdl2 renderer backend" , default = false , type = " boolean" })
5050 add_configs (" vulkan" , {description = " Enable the vulkan backend" , default = false , type = " boolean" })
5151 add_configs (" win32" , {description = " Enable the win32 backend" , default = false , type = " boolean" })
52+ add_configs (" wgpu" , {description = " Enable the wgpu backend" , default = false , type = " boolean" })
5253 add_configs (" freetype" , {description = " Use FreeType to build and rasterize the font atlas" , default = false , type = " boolean" })
5354 add_configs (" user_config" , {description = " Use user config (disables test!)" , default = nil , type = " string" })
5455 add_configs (" wchar32" , {description = " Use 32-bit for ImWchar (default is 16-bit)" , default = false , type = " boolean" })
@@ -101,6 +102,9 @@ package("imgui")
101102 if package :config (" vulkan" ) then
102103 package :add (" deps" , " vulkansdk" )
103104 end
105+ if package :config (" wgpu" ) then
106+ package :add (" deps" , " wgpu-native" )
107+ end
104108 if package :config (" freetype" ) then
105109 package :add (" deps" , " freetype" )
106110 end
@@ -123,6 +127,7 @@ package("imgui")
123127 sdl2_renderer = package :config (" sdl2_renderer" ),
124128 vulkan = package :config (" vulkan" ),
125129 win32 = package :config (" win32" ),
130+ wgpu = package :config (" wgpu" ),
126131 freetype = package :config (" freetype" ),
127132 user_config = package :config (" user_config" ),
128133 wchar32 = package :config (" wchar32" )
0 commit comments