Fix texture GPU resource debug name in non-Release game builds to match the path in project

This commit is contained in:
Wojtek Figat
2026-02-20 23:43:29 +01:00
parent 1982694ef0
commit 5b3079acde
3 changed files with 13 additions and 6 deletions

View File

@@ -15,6 +15,10 @@
#include "Engine/Scripting/Enums.h"
#include "Engine/Tools/TextureTool/TextureTool.h"
#include "Engine/Threading/Threading.h"
#if GPU_ENABLE_RESOURCE_NAMING && !USE_EDITOR
#include "Engine/Content/Content.h"
#include "Engine/Content/Cache/AssetsCache.h"
#endif
TextureMipData::TextureMipData()
: RowPitch(0)
@@ -243,7 +247,7 @@ REGISTER_BINARY_ASSET_ABSTRACT(TextureBase, "FlaxEngine.TextureBase");
TextureBase::TextureBase(const SpawnParams& params, const AssetInfo* info)
: BinaryAsset(params, info)
, _texture(this, info->Path)
, _texture(this, GPU_GET_RESOURCE_NAME_FROM_ASSET(info))
, _customData(nullptr)
, _parent(this)
{