Add support for renaming GPU resources (development builds only)

This commit is contained in:
Wojtek Figat
2022-06-22 23:08:39 +02:00
parent 5d34575a91
commit 1dab45f407
7 changed files with 49 additions and 41 deletions

View File

@@ -159,14 +159,6 @@ public:
public:
// [GPUResource]
ResourceType GetResourceType() const final override
{
return ResourceType::Texture;
}
#if GPU_ENABLE_RESOURCE_NAMING
String GetName() const override
{
return String::Format(TEXT("RenderOutput {0}x{1}"), GetWidth(), GetHeight());
}
#endif
String ToString() const override;
ResourceType GetResourceType() const final override;
};