Skip to content

Commit

Permalink
Do not hardcode the window handle when getting wayland surface
Browse files Browse the repository at this point in the history
  • Loading branch information
belegdol committed Jul 31, 2023
1 parent 67beb2a commit a238d0f
Show file tree
Hide file tree
Showing 58 changed files with 60 additions and 58 deletions.
2 changes: 1 addition & 1 deletion examples/00-helloworld/helloworld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ExampleHelloWorld : 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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/01-cubes/cubes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class ExampleCubes : 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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/02-metaballs/metaballs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/03-raymarch/raymarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/04-mesh/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/05-instancing/instancing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/06-bump/bump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/07-callback/callback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/08-update/update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/09-hdr/hdr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/10-font/font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/11-fontsdf/fontsdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/12-lod/lod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/13-stencil/stencil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_viewState.m_width;
init.resolution.height = m_viewState.m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/14-shadowvolumes/shadowvolumes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_viewState.m_width;
init.resolution.height = m_viewState.m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/15-shadowmaps-simple/shadowmaps_simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/16-shadowmaps/shadowmaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_viewState.m_width;
init.resolution.height = m_viewState.m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/17-drawstress/drawstress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/18-ibl/ibl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/19-oit/oit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/20-nanovg/nanovg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/21-deferred/deferred.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/22-windows/windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
1 change: 1 addition & 0 deletions examples/23-vectordisplay/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class ExampleVectorDisplay : 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(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/24-nbody/nbody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/26-occlusion/occlusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/27-terrain/terrain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/28-wireframe/wireframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/29-debugdraw/debugdraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/30-picking/picking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/31-rsm/reflectiveshadowmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/32-particles/particles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/33-pom/pom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/34-mvs/mvs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/35-dynamic/dynamic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/36-sky/sky.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/37-gpudrivenrendering/gpudrivenrendering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/38-bloom/bloom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
2 changes: 1 addition & 1 deletion examples/39-assao/assao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +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.platformData.wlsurface = entry::getWaylandSurfaceHandle(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
Loading

0 comments on commit a238d0f

Please sign in to comment.