Fix various issues in WebGPU backend
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user