Backends: WebGPU: fixed Emscripten version check. (#8381)
Amend ff673d3.
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
#include <emscripten/version.h>
|
#include <emscripten/version.h>
|
||||||
|
|
||||||
#ifdef __EMSCRIPTEN_MAJOR__
|
#ifdef __EMSCRIPTEN_MAJOR__
|
||||||
#if (__EMSCRIPTEN_MAJOR__ >= 4) && (__EMSCRIPTEN_MINOR__ >= 0) && (__EMSCRIPTEN_TINY__ >= 10)
|
#if (__EMSCRIPTEN_MAJOR__ >= 5) || ((__EMSCRIPTEN_MAJOR__ >= 4) && (__EMSCRIPTEN_MINOR__ >= 0) && (__EMSCRIPTEN_TINY__ >= 10))
|
||||||
#define IMGUI_IMPL_WEBGPU_BACKEND_DAWN
|
#define IMGUI_IMPL_WEBGPU_BACKEND_DAWN
|
||||||
#else
|
#else
|
||||||
#define IMGUI_IMPL_WEBGPU_BACKEND_WGPU
|
#define IMGUI_IMPL_WEBGPU_BACKEND_WGPU
|
||||||
|
|||||||
@@ -65,6 +65,8 @@ Other Changes:
|
|||||||
- Clear `DisplayStart`/`DisplayEnd` fields when `Step()` returns false.
|
- Clear `DisplayStart`/`DisplayEnd` fields when `Step()` returns false.
|
||||||
- Added `UserIndex` helper storage. This is solely a convenience for cases where
|
- Added `UserIndex` helper storage. This is solely a convenience for cases where
|
||||||
you may want to carry an index around.
|
you may want to carry an index around.
|
||||||
|
- Backends:
|
||||||
|
- WebGPU: fixed version check for Emscripten 5.0.0+.
|
||||||
- Examples:
|
- Examples:
|
||||||
- Emscripten: added `tabindex=-1` to canvas in our shell_minimal.htm. Without it,
|
- Emscripten: added `tabindex=-1` to canvas in our shell_minimal.htm. Without it,
|
||||||
the canvas was not focusable in the DOM, which in turn make some backends
|
the canvas was not focusable in the DOM, which in turn make some backends
|
||||||
|
|||||||
Reference in New Issue
Block a user