Skip to content

Commit

Permalink
Fix resource name not being set for debug layer logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Flone-dnb committed Sep 23, 2024
1 parent 26ee234 commit 4e87d9b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ namespace ne {
pCreatedResource->pInternalResource = pCreatedResource->pAllocatedResource->GetResource();

// Assign resource name.
pCreatedResource->pAllocatedResource->SetName(Globals::stringToWstring(sResourceName).c_str());
pCreatedResource->pAllocatedResource->SetName(
Globals::stringToWstring(sResourceName).c_str()); // name for D3D12MA logging
pCreatedResource->pInternalResource->SetName(
pCreatedResource->pAllocatedResource->GetName()); // name for debug layer logging

return pCreatedResource;
}
Expand Down

0 comments on commit 4e87d9b

Please sign in to comment.