Add debug name for PSO catching on D3D12/Vulkan during profiling incl. Development builds
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
|
||||
#include "Engine/Core/Types/BaseTypes.h"
|
||||
#include "Engine/Core/Types/String.h"
|
||||
#if !BUILD_RELEASE
|
||||
#include "Engine/Core/Collections/Array.h"
|
||||
#endif
|
||||
#include "Config.h"
|
||||
|
||||
class GPUShader;
|
||||
@@ -93,6 +96,11 @@ public:
|
||||
return _flags;
|
||||
}
|
||||
|
||||
#if !BUILD_RELEASE
|
||||
typedef Array<char, InlinedAllocation<60>> DebugName;
|
||||
void GetDebugName(DebugName& name) const;
|
||||
#endif
|
||||
|
||||
public:
|
||||
/// <summary>
|
||||
/// Gets shader program stage type.
|
||||
|
||||
Reference in New Issue
Block a user