Added rdcstr DXIL::Program::GetDebugStatus()

returns "DXIL Debugging is not supported"
This commit is contained in:
Jake Turner
2024-05-09 07:23:27 +01:00
parent b75fa90630
commit 8ba66e92a7
3 changed files with 9 additions and 5 deletions
@@ -25,6 +25,7 @@
#include "dxbc_reflect.h"
#include "common/formatting.h"
#include "core/core.h"
#include "driver/shaders/dxil/dxil_bytecode.h"
#include "dxbc_bytecode.h"
#include "dxbc_container.h"
@@ -373,18 +374,15 @@ void MakeShaderReflection(DXBC::DXBCContainer *dxbc, const ShaderEntryPoint &ent
if(dxbc->GetDXBCByteCode())
{
refl->debugInfo.debugStatus = dxbc->GetDXBCByteCode()->GetDebugStatus();
refl->debugInfo.debuggable = refl->debugInfo.debugStatus.empty();
}
else
{
refl->debugInfo.debuggable = false;
if(dxbc->GetDXILByteCode())
refl->debugInfo.debugStatus = "Debugging DXIL is not supported";
refl->debugInfo.debugStatus = dxbc->GetDXILByteCode()->GetDebugStatus();
else
refl->debugInfo.debugStatus = "Shader contains no recognised bytecode";
}
refl->debugInfo.debuggable = refl->debugInfo.debugStatus.empty();
refl->encoding = ShaderEncoding::DXBC;
refl->debugInfo.compiler = KnownShaderTool::fxc;
@@ -1265,6 +1265,7 @@ public:
const bytebuf &GetBytes() const { return m_Bytes; }
void FetchComputeProperties(DXBC::Reflection *reflection);
DXBC::Reflection *GetReflection();
rdcstr GetDebugStatus();
rdcarray<ShaderEntryPoint> GetEntryPoints();
void FillRayPayloads(
Program *executable,
@@ -1679,6 +1679,11 @@ DXBC::Reflection *Program::GetReflection()
return refl;
}
rdcstr Program::GetDebugStatus()
{
return "Debugging DXIL is not supported";
}
void Program::GetLineInfo(size_t instruction, uintptr_t offset, LineColumnInfo &lineInfo) const
{
lineInfo = LineColumnInfo();