Fix various issues in WebGPU backend

This commit is contained in:
Wojtek Figat
2026-03-16 16:39:18 +01:00
parent a5bbf0dbde
commit 427f4647fc
9 changed files with 53 additions and 5 deletions

View File

@@ -256,8 +256,6 @@ uint64 GPUResource::GetMemoryUsage() const
return _memoryUsage;
}
static_assert((GPU_ENABLE_RESOURCE_NAMING) == (!BUILD_RELEASE), "Update build condition on around GPUResource Name property getter/setter.");
#if GPU_ENABLE_RESOURCE_NAMING
StringView GPUResource::GetName() const
@@ -282,6 +280,17 @@ void GPUResource::SetName(const StringView& name)
}
}
#elif !BUILD_RELEASE
StringView GPUResource::GetName() const
{
return StringView::Empty;
}
void GPUResource::SetName(const StringView& name)
{
}
#endif
void GPUResource::ReleaseGPU()