mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-01 11:25:48 +00:00
Expose buffer interpretation helpers to python
This commit is contained in:
@@ -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 {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user