Skip to content

Commit

Permalink
Fix up vulkan on wayland for the remaining examples
Browse files Browse the repository at this point in the history
  • Loading branch information
belegdol committed Jul 31, 2023
1 parent 7e82786 commit e46309b
Show file tree
Hide file tree
Showing 46 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/02-metaballs/metaballs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/03-raymarch/raymarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/04-mesh/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/05-instancing/instancing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/06-bump/bump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/07-callback/callback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/08-update/update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/09-hdr/hdr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/10-font/font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/11-fontsdf/fontsdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/12-lod/lod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/13-stencil/stencil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/14-shadowvolumes/shadowvolumes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/15-shadowmaps-simple/shadowmaps_simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/16-shadowmaps/shadowmaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/17-drawstress/drawstress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/18-ibl/ibl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/19-oit/oit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/20-nanovg/nanovg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/21-deferred/deferred.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/22-windows/windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/24-nbody/nbody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions examples/25-c99/helloworld.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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);
Expand Down
1 change: 1 addition & 0 deletions examples/26-occlusion/occlusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/27-terrain/terrain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/28-wireframe/wireframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/29-debugdraw/debugdraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/30-picking/picking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/31-rsm/reflectiveshadowmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/32-particles/particles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/33-pom/pom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/34-mvs/mvs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/35-dynamic/dynamic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/36-sky/sky.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/37-gpudrivenrendering/gpudrivenrendering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/38-bloom/bloom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/39-assao/assao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/40-svt/svt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/41-tess/tess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/42-bunnylod/bunnylod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/43-denoise/denoise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/44-sss/screen_space_shadows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/45-bokeh/bokeh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/47-pixelformats/pixelformats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/48-drawindirect/drawindirect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions examples/49-hextile/hextile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e46309b

Please sign in to comment.