summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-29 01:01:14 +0100
committerskal <pascal.massimino@gmail.com>2026-03-29 01:01:14 +0100
commitf05f76e07c8a91911aa61af16b7db4f30247a3d8 (patch)
tree478940701f9072ef5750c1d27fdb619f92a74ca7 /src/tests
parent8bee7577cba9f55be8bc404038d5df959595b989 (diff)
fix: reorder WGPURequestAdapterOptions fields to match declaration order
Fixes -Wreorder-init-list warning in webgpu_test_fixture.cc.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/common/webgpu_test_fixture.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/common/webgpu_test_fixture.cc b/src/tests/common/webgpu_test_fixture.cc
index afb7ce3..714ace0 100644
--- a/src/tests/common/webgpu_test_fixture.cc
+++ b/src/tests/common/webgpu_test_fixture.cc
@@ -27,8 +27,8 @@ bool WebGPUTestFixture::init() {
// Request adapter (API differs between Win32 and native)
WGPUAdapter adapter = nullptr;
const WGPURequestAdapterOptions adapter_opts = {
- .compatibleSurface = nullptr,
.powerPreference = WGPUPowerPreference_HighPerformance,
+ .compatibleSurface = nullptr,
};
#if defined(DEMO_CROSS_COMPILE_WIN32)