From e46309bd8836d24e1f56d3b99c3aef0cd6b4e487 Mon Sep 17 00:00:00 2001 From: Julian Sikorski Date: Mon, 31 Jul 2023 14:18:28 +0200 Subject: [PATCH] Fix up vulkan on wayland for the remaining examples --- examples/02-metaballs/metaballs.cpp | 1 + examples/03-raymarch/raymarch.cpp | 1 + examples/04-mesh/mesh.cpp | 1 + examples/05-instancing/instancing.cpp | 1 + examples/06-bump/bump.cpp | 1 + examples/07-callback/callback.cpp | 1 + examples/08-update/update.cpp | 1 + examples/09-hdr/hdr.cpp | 1 + examples/10-font/font.cpp | 1 + examples/11-fontsdf/fontsdf.cpp | 1 + examples/12-lod/lod.cpp | 1 + examples/13-stencil/stencil.cpp | 1 + examples/14-shadowvolumes/shadowvolumes.cpp | 1 + examples/15-shadowmaps-simple/shadowmaps_simple.cpp | 1 + examples/16-shadowmaps/shadowmaps.cpp | 1 + examples/17-drawstress/drawstress.cpp | 1 + examples/18-ibl/ibl.cpp | 1 + examples/19-oit/oit.cpp | 1 + examples/20-nanovg/nanovg.cpp | 1 + examples/21-deferred/deferred.cpp | 1 + examples/22-windows/windows.cpp | 1 + examples/24-nbody/nbody.cpp | 1 + examples/25-c99/helloworld.c | 2 ++ examples/26-occlusion/occlusion.cpp | 1 + examples/27-terrain/terrain.cpp | 1 + examples/28-wireframe/wireframe.cpp | 1 + examples/29-debugdraw/debugdraw.cpp | 1 + examples/30-picking/picking.cpp | 1 + examples/31-rsm/reflectiveshadowmap.cpp | 1 + examples/32-particles/particles.cpp | 1 + examples/33-pom/pom.cpp | 1 + examples/34-mvs/mvs.cpp | 1 + examples/35-dynamic/dynamic.cpp | 1 + examples/36-sky/sky.cpp | 1 + examples/37-gpudrivenrendering/gpudrivenrendering.cpp | 1 + examples/38-bloom/bloom.cpp | 1 + examples/39-assao/assao.cpp | 1 + examples/40-svt/svt.cpp | 1 + examples/41-tess/tess.cpp | 1 + examples/42-bunnylod/bunnylod.cpp | 1 + examples/43-denoise/denoise.cpp | 1 + examples/44-sss/screen_space_shadows.cpp | 1 + examples/45-bokeh/bokeh.cpp | 1 + examples/47-pixelformats/pixelformats.cpp | 1 + examples/48-drawindirect/drawindirect.cpp | 1 + examples/49-hextile/hextile.cpp | 1 + 46 files changed, 47 insertions(+) diff --git a/examples/02-metaballs/metaballs.cpp b/examples/02-metaballs/metaballs.cpp index 95ca1dbe0ad..8dff0873e4c 100644 --- a/examples/02-metaballs/metaballs.cpp +++ b/examples/02-metaballs/metaballs.cpp @@ -508,6 +508,7 @@ class ExampleMetaballs : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/03-raymarch/raymarch.cpp b/examples/03-raymarch/raymarch.cpp index c8403976275..29d9c3fd9cd 100644 --- a/examples/03-raymarch/raymarch.cpp +++ b/examples/03-raymarch/raymarch.cpp @@ -121,6 +121,7 @@ class ExampleRaymarch : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/04-mesh/mesh.cpp b/examples/04-mesh/mesh.cpp index dd583719853..b92da9e3004 100644 --- a/examples/04-mesh/mesh.cpp +++ b/examples/04-mesh/mesh.cpp @@ -32,6 +32,7 @@ class ExampleMesh : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/05-instancing/instancing.cpp b/examples/05-instancing/instancing.cpp index 307f56fb035..290e1c3f11f 100644 --- a/examples/05-instancing/instancing.cpp +++ b/examples/05-instancing/instancing.cpp @@ -84,6 +84,7 @@ class ExampleInstancing : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/06-bump/bump.cpp b/examples/06-bump/bump.cpp index ca9cfc7b6cb..901ba34c054 100644 --- a/examples/06-bump/bump.cpp +++ b/examples/06-bump/bump.cpp @@ -104,6 +104,7 @@ class ExampleBump : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/07-callback/callback.cpp b/examples/07-callback/callback.cpp index d660d7f4f82..d06f1ba2e9b 100644 --- a/examples/07-callback/callback.cpp +++ b/examples/07-callback/callback.cpp @@ -331,6 +331,7 @@ class ExampleCallback : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/08-update/update.cpp b/examples/08-update/update.cpp index dfabaef2d9d..a5286bd4a4a 100644 --- a/examples/08-update/update.cpp +++ b/examples/08-update/update.cpp @@ -247,6 +247,7 @@ class ExampleUpdate : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/09-hdr/hdr.cpp b/examples/09-hdr/hdr.cpp index 3d0af434679..fac616f3e96 100644 --- a/examples/09-hdr/hdr.cpp +++ b/examples/09-hdr/hdr.cpp @@ -159,6 +159,7 @@ class ExampleHDR : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/10-font/font.cpp b/examples/10-font/font.cpp index 7e7be1b160d..8f11e74bfdb 100644 --- a/examples/10-font/font.cpp +++ b/examples/10-font/font.cpp @@ -73,6 +73,7 @@ class ExampleFont : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/11-fontsdf/fontsdf.cpp b/examples/11-fontsdf/fontsdf.cpp index 0b2de43a2f6..0f932bdaba0 100644 --- a/examples/11-fontsdf/fontsdf.cpp +++ b/examples/11-fontsdf/fontsdf.cpp @@ -56,6 +56,7 @@ class ExampleFontSDF : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/12-lod/lod.cpp b/examples/12-lod/lod.cpp index b717c961e01..39fd6fba80e 100644 --- a/examples/12-lod/lod.cpp +++ b/examples/12-lod/lod.cpp @@ -48,6 +48,7 @@ class ExampleLod : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/13-stencil/stencil.cpp b/examples/13-stencil/stencil.cpp index 3acd5d5019b..d79ee60dd10 100644 --- a/examples/13-stencil/stencil.cpp +++ b/examples/13-stencil/stencil.cpp @@ -814,6 +814,7 @@ class ExampleStencil : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_viewState.m_width; init.resolution.height = m_viewState.m_height; init.resolution.reset = m_reset; diff --git a/examples/14-shadowvolumes/shadowvolumes.cpp b/examples/14-shadowvolumes/shadowvolumes.cpp index 2df07dec053..756a1dc6396 100644 --- a/examples/14-shadowvolumes/shadowvolumes.cpp +++ b/examples/14-shadowvolumes/shadowvolumes.cpp @@ -1786,6 +1786,7 @@ class ExampleShadowVolumes : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_viewState.m_width; init.resolution.height = m_viewState.m_height; init.resolution.reset = m_reset; diff --git a/examples/15-shadowmaps-simple/shadowmaps_simple.cpp b/examples/15-shadowmaps-simple/shadowmaps_simple.cpp index 236b859e0ea..b8f2bb1d087 100644 --- a/examples/15-shadowmaps-simple/shadowmaps_simple.cpp +++ b/examples/15-shadowmaps-simple/shadowmaps_simple.cpp @@ -80,6 +80,7 @@ class ExampleShadowmapsSimple : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/16-shadowmaps/shadowmaps.cpp b/examples/16-shadowmaps/shadowmaps.cpp index 4ab7b7e60dd..58d01d82f78 100644 --- a/examples/16-shadowmaps/shadowmaps.cpp +++ b/examples/16-shadowmaps/shadowmaps.cpp @@ -1159,6 +1159,7 @@ class ExampleShadowmaps : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_viewState.m_width; init.resolution.height = m_viewState.m_height; init.resolution.reset = m_reset; diff --git a/examples/17-drawstress/drawstress.cpp b/examples/17-drawstress/drawstress.cpp index aa9c6ecf6aa..2900d754a3a 100644 --- a/examples/17-drawstress/drawstress.cpp +++ b/examples/17-drawstress/drawstress.cpp @@ -131,6 +131,7 @@ class ExampleDrawStress : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/18-ibl/ibl.cpp b/examples/18-ibl/ibl.cpp index 54a785561d0..fd03e2730b7 100644 --- a/examples/18-ibl/ibl.cpp +++ b/examples/18-ibl/ibl.cpp @@ -420,6 +420,7 @@ class ExampleIbl : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/19-oit/oit.cpp b/examples/19-oit/oit.cpp index 4d4fc4bef71..b4277a6f871 100644 --- a/examples/19-oit/oit.cpp +++ b/examples/19-oit/oit.cpp @@ -171,6 +171,7 @@ class ExampleOIT : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/20-nanovg/nanovg.cpp b/examples/20-nanovg/nanovg.cpp index 51b21b936d0..3975118a396 100644 --- a/examples/20-nanovg/nanovg.cpp +++ b/examples/20-nanovg/nanovg.cpp @@ -1404,6 +1404,7 @@ class ExampleNanoVG : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/21-deferred/deferred.cpp b/examples/21-deferred/deferred.cpp index 47adbabfcdc..9b2aa709edf 100644 --- a/examples/21-deferred/deferred.cpp +++ b/examples/21-deferred/deferred.cpp @@ -213,6 +213,7 @@ class ExampleDeferred : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/22-windows/windows.cpp b/examples/22-windows/windows.cpp index 8f9150e4394..37230f3fb75 100644 --- a/examples/22-windows/windows.cpp +++ b/examples/22-windows/windows.cpp @@ -88,6 +88,7 @@ class ExampleWindows : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/24-nbody/nbody.cpp b/examples/24-nbody/nbody.cpp index 6204705421e..4d9a8839882 100644 --- a/examples/24-nbody/nbody.cpp +++ b/examples/24-nbody/nbody.cpp @@ -132,6 +132,7 @@ class ExampleNbody : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/25-c99/helloworld.c b/examples/25-c99/helloworld.c index 44879f97d36..36f9bbb5a5b 100644 --- a/examples/25-c99/helloworld.c +++ b/examples/25-c99/helloworld.c @@ -9,6 +9,7 @@ extern bool entry_process_events(uint32_t* _width, uint32_t* _height, uint32_t* _debug, uint32_t* _reset); extern void* entry_get_default_native_window_handle(void); extern void* entry_get_native_display_handle(void); +extern void* entry_get_wayland_surface_handle(void); uint16_t uint16_max(uint16_t _a, uint16_t _b) { @@ -29,6 +30,7 @@ int32_t _main_(int32_t _argc, char** _argv) init.platformData.nwh = entry_get_default_native_window_handle(); init.platformData.ndt = entry_get_native_display_handle(); + init.platformData.wlsurface = entry_get_wayland_surface_handle(); bgfx_init(&init); bgfx_reset(width, height, reset, init.resolution.format); diff --git a/examples/26-occlusion/occlusion.cpp b/examples/26-occlusion/occlusion.cpp index 929fff42a57..ffaedffcb5c 100644 --- a/examples/26-occlusion/occlusion.cpp +++ b/examples/26-occlusion/occlusion.cpp @@ -84,6 +84,7 @@ class ExampleOcclusion : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/27-terrain/terrain.cpp b/examples/27-terrain/terrain.cpp index 64f1ba650b0..a7f9dfbc7d3 100644 --- a/examples/27-terrain/terrain.cpp +++ b/examples/27-terrain/terrain.cpp @@ -80,6 +80,7 @@ ExampleTerrain(const char* _name, const char* _description, const char* _url) init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/28-wireframe/wireframe.cpp b/examples/28-wireframe/wireframe.cpp index 24347c8cb13..671e5e334e8 100644 --- a/examples/28-wireframe/wireframe.cpp +++ b/examples/28-wireframe/wireframe.cpp @@ -293,6 +293,7 @@ class ExampleWireframe : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/29-debugdraw/debugdraw.cpp b/examples/29-debugdraw/debugdraw.cpp index 5f2be270fef..b1a2e81f39f 100644 --- a/examples/29-debugdraw/debugdraw.cpp +++ b/examples/29-debugdraw/debugdraw.cpp @@ -780,6 +780,7 @@ class ExampleDebugDraw : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/30-picking/picking.cpp b/examples/30-picking/picking.cpp index a77395e8d71..0d14c5582d0 100644 --- a/examples/30-picking/picking.cpp +++ b/examples/30-picking/picking.cpp @@ -40,6 +40,7 @@ class ExamplePicking : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/31-rsm/reflectiveshadowmap.cpp b/examples/31-rsm/reflectiveshadowmap.cpp index 358893f9bb8..468843f24d5 100644 --- a/examples/31-rsm/reflectiveshadowmap.cpp +++ b/examples/31-rsm/reflectiveshadowmap.cpp @@ -213,6 +213,7 @@ class ExampleRSM : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/32-particles/particles.cpp b/examples/32-particles/particles.cpp index 0d573a9dcf5..ec2f5626c8d 100644 --- a/examples/32-particles/particles.cpp +++ b/examples/32-particles/particles.cpp @@ -248,6 +248,7 @@ class ExampleParticles : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/33-pom/pom.cpp b/examples/33-pom/pom.cpp index f655f714309..756c9728705 100644 --- a/examples/33-pom/pom.cpp +++ b/examples/33-pom/pom.cpp @@ -130,6 +130,7 @@ class ExamplePom : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/34-mvs/mvs.cpp b/examples/34-mvs/mvs.cpp index 8782f7f48fd..42aee8dba76 100644 --- a/examples/34-mvs/mvs.cpp +++ b/examples/34-mvs/mvs.cpp @@ -126,6 +126,7 @@ class ExampleMvs : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/35-dynamic/dynamic.cpp b/examples/35-dynamic/dynamic.cpp index 8d5f2191cd7..e314a5baa26 100644 --- a/examples/35-dynamic/dynamic.cpp +++ b/examples/35-dynamic/dynamic.cpp @@ -104,6 +104,7 @@ class ExampleDynamic : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/36-sky/sky.cpp b/examples/36-sky/sky.cpp index 5c04dfa8947..3f7e5b8a867 100644 --- a/examples/36-sky/sky.cpp +++ b/examples/36-sky/sky.cpp @@ -420,6 +420,7 @@ class ExampleProceduralSky : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/37-gpudrivenrendering/gpudrivenrendering.cpp b/examples/37-gpudrivenrendering/gpudrivenrendering.cpp index aa6f5bfb71e..23dac424ffd 100644 --- a/examples/37-gpudrivenrendering/gpudrivenrendering.cpp +++ b/examples/37-gpudrivenrendering/gpudrivenrendering.cpp @@ -330,6 +330,7 @@ class GPUDrivenRendering : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/38-bloom/bloom.cpp b/examples/38-bloom/bloom.cpp index 312eef0e72a..40bd55a0a5d 100644 --- a/examples/38-bloom/bloom.cpp +++ b/examples/38-bloom/bloom.cpp @@ -200,6 +200,7 @@ class ExampleBloom : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/39-assao/assao.cpp b/examples/39-assao/assao.cpp index 45d1e92b7b4..0b3bd1d1d90 100644 --- a/examples/39-assao/assao.cpp +++ b/examples/39-assao/assao.cpp @@ -271,6 +271,7 @@ namespace init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/40-svt/svt.cpp b/examples/40-svt/svt.cpp index caab49c3416..e73487c56f6 100644 --- a/examples/40-svt/svt.cpp +++ b/examples/40-svt/svt.cpp @@ -82,6 +82,7 @@ class ExampleSVT : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/41-tess/tess.cpp b/examples/41-tess/tess.cpp index 45566ddcd5f..509e442cfbf 100644 --- a/examples/41-tess/tess.cpp +++ b/examples/41-tess/tess.cpp @@ -339,6 +339,7 @@ class ExampleTessellation : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/42-bunnylod/bunnylod.cpp b/examples/42-bunnylod/bunnylod.cpp index 800facb53e9..39cc1923099 100644 --- a/examples/42-bunnylod/bunnylod.cpp +++ b/examples/42-bunnylod/bunnylod.cpp @@ -264,6 +264,7 @@ class ExampleBunnyLOD : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/43-denoise/denoise.cpp b/examples/43-denoise/denoise.cpp index 3c9c2ef299b..9e4aff9c498 100644 --- a/examples/43-denoise/denoise.cpp +++ b/examples/43-denoise/denoise.cpp @@ -253,6 +253,7 @@ class ExampleDenoise : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/44-sss/screen_space_shadows.cpp b/examples/44-sss/screen_space_shadows.cpp index 7a142baa373..a096f47d93d 100644 --- a/examples/44-sss/screen_space_shadows.cpp +++ b/examples/44-sss/screen_space_shadows.cpp @@ -265,6 +265,7 @@ class ExampleScreenSpaceShadows : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/45-bokeh/bokeh.cpp b/examples/45-bokeh/bokeh.cpp index b1ed78f4240..9490765175e 100644 --- a/examples/45-bokeh/bokeh.cpp +++ b/examples/45-bokeh/bokeh.cpp @@ -247,6 +247,7 @@ class ExampleBokeh : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/47-pixelformats/pixelformats.cpp b/examples/47-pixelformats/pixelformats.cpp index fcd1198e4ae..7e07facb97d 100644 --- a/examples/47-pixelformats/pixelformats.cpp +++ b/examples/47-pixelformats/pixelformats.cpp @@ -429,6 +429,7 @@ class ExamplePixelFormats : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/48-drawindirect/drawindirect.cpp b/examples/48-drawindirect/drawindirect.cpp index d8b4d6d58cf..f9c048cd0b0 100644 --- a/examples/48-drawindirect/drawindirect.cpp +++ b/examples/48-drawindirect/drawindirect.cpp @@ -146,6 +146,7 @@ class DrawIndirect : public entry::AppI init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset; diff --git a/examples/49-hextile/hextile.cpp b/examples/49-hextile/hextile.cpp index ecef40bf261..7188f22252a 100644 --- a/examples/49-hextile/hextile.cpp +++ b/examples/49-hextile/hextile.cpp @@ -85,6 +85,7 @@ namespace init.vendorId = args.m_pciId; init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle); init.platformData.ndt = entry::getNativeDisplayHandle(); + init.platformData.wlsurface = entry::getWaylandSurfaceHandle(); init.resolution.width = m_width; init.resolution.height = m_height; init.resolution.reset = m_reset;