Fix query leaks when GetQueryResult call is missed

This commit is contained in:
2026-08-25 12:50:37 +02:00
parent 3fa73c2d69
commit 70155516c3
11 changed files with 94 additions and 29 deletions
@@ -17,10 +17,10 @@
#include <webgpu/webgpu.h>
// Utiltiy macro to convert WGPUStringView into UTF-16 string (on stack)
// Utility macro to convert WGPUStringView into UTF-16 string (on stack)
#define WEBGPU_TO_STR(strView) StringAsUTF16<>(strView.data, strView.data ? strView.length : 0).Get()
// Utiltiy macro to get WGPUStringView for a text constant
// Utility macro to get WGPUStringView for a text constant
#define WEBGPU_STR(str) { str, ARRAY_COUNT(str) - 1 }
#define WEBGPU_MAX_QUERY_SETS 8