Skip to content

Commit

Permalink
Allow simultaneous X11 and Wayland support (#3152)
Browse files Browse the repository at this point in the history
* Allow simultaneous X11 and Wayland support

* Add NativeWindowHandleType

* Set default value for g_platformData.type

* Use g_platformData.type to check for a native Wayland window

* Stub getNativeWindowHandleType on platform where Wayland is not an option

* Implement getNativeWindowHandleType for GLFW

* Add getNativeWindowHandleType to the remaining C++ examples

* Add getNativeWindowHandleType to the C example
  • Loading branch information
belegdol authored Aug 17, 2023
1 parent a16f603 commit f4d4639
Show file tree
Hide file tree
Showing 64 changed files with 239 additions and 64 deletions.
1 change: 1 addition & 0 deletions examples/00-helloworld/helloworld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +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.type = entry::getNativeWindowHandleType(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/01-cubes/cubes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle);
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.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle);
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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle);
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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle);
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 bgfx_native_window_handle_type_t entry_get_native_window_handle_type(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.type = entry_get_native_window_handle_type();

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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(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/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.type = entry::getNativeWindowHandleType(entry::kDefaultWindowHandle);
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
Expand Down
Loading

0 comments on commit f4d4639

Please sign in to comment.