Expose buffer interpretation helpers to python

This commit is contained in:
baldurk
2026-08-13 21:05:15 +01:00
parent 2fbf67493f
commit e20c2b9985
19 changed files with 799 additions and 294 deletions
+2
View File
@@ -174,6 +174,7 @@ SWIGPY_DESTRUCTOR_CLOSURE(capviewer_deinit) /* defines capviewer_deinit_destruct
%include "Code/Interface/PersistentConfig.h"
%include "Code/Interface/RemoteHost.h"
%include "Code/Interface/Extensions.h"
%include "Code/Interface/Helpers.h"
DOCUMENT("");
@@ -186,6 +187,7 @@ TEMPLATE_ARRAY_INSTANTIATE(rdcarray, DialogButton)
TEMPLATE_ARRAY_INSTANTIATE(rdcarray, RemoteHost)
TEMPLATE_ARRAY_INSTANTIATE(rdcarray, ConnectedTempCapture)
TEMPLATE_ARRAY_INSTANTIATE_PTR(rdcarray, ICaptureViewer)
TEMPLATE_ARRAY_INSTANTIATE(rdcarray, ParseError)
// unignore the function from above
%rename("%s") IReplayManager::BlockInvoke;
@@ -260,3 +260,48 @@ void RemoteHost::SetConnected(bool connected)
void RemoteHost::SetShutdown()
{
}
ICaptureContext *BufferInterpreter::context = NULL;
ParsedBufferFormat BufferInterpreter::Parse(rdcstr format)
{
return {};
}
rdcstr BufferInterpreter::Unparse(ShaderConstantType structType, PackingRules pack, ResourceId shader)
{
return rdcstr();
}
PackingRules BufferInterpreter::EstimatePackingRules(ShaderConstantType baseType, ResourceId shader)
{
return PackingRules();
}
ShaderConstantType BufferInterpreter::GetPointerValType(PointerVal val)
{
return ShaderConstantType();
}
ShaderConstantType BufferInterpreter::GetPointerType(uint32_t pointerTypeId, ResourceId shader)
{
return ShaderConstantType();
}
rdcpair<ResourceId, uint64_t> BufferInterpreter::LookupPointer(uint64_t pointerAddress,
uint64_t minSize /*= 0*/)
{
return {ResourceId(), 0};
}
uint32_t BufferInterpreter::GetVariableAdvance(PackingRules pack, const ShaderConstant &var)
{
return 0;
}
rdcarray<ShaderVariable> BufferInterpreter::GetShaderVariables(const ShaderConstant &elem,
const bytebuf &data,
int32_t maxVariables)
{
return {};
}