diff --git a/public/tracy/TracyWebGPU.hpp b/public/tracy/TracyWebGPU.hpp index 2936b216..33a11891 100644 --- a/public/tracy/TracyWebGPU.hpp +++ b/public/tracy/TracyWebGPU.hpp @@ -454,8 +454,8 @@ namespace tracy void ApplyToDeviceDescriptor(WGPUDeviceDescriptor& deviceDescriptor) { - uint32_t userCount = deviceDescriptor.requiredFeatureCount; - uint32_t totalCount = userCount + NumFeatures; + size_t userCount = deviceDescriptor.requiredFeatureCount; + size_t totalCount = userCount + NumFeatures; // NOTE: this allocation will leak... auto* mergedFeatures = static_cast(tracy_malloc(totalCount * sizeof(WGPUFeatureName))); if (userCount > 0 && deviceDescriptor.requiredFeatures)