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 -2
View File
@@ -1337,8 +1337,8 @@ DescriptorViewer::DescriptorViewer(ICaptureContext &ctx, QWidget *parent)
if(tag.descriptor.type == DescriptorType::TypedBuffer ||
tag.descriptor.type == DescriptorType::ReadWriteTypedBuffer)
format = BufferFormatter::GetBufferFormatString(Packing::C, ResourceId(), ShaderResource(),
tag.descriptor.format);
format = BufferFormatter::GetBufferFormatString(PackingRules::C(), ResourceId(),
ShaderResource(), tag.descriptor.format);
IBufferViewer *viewer = m_Ctx.ViewBuffer(tag.descriptor.byteOffset, tag.descriptor.byteSize,
tag.descriptor.resource, format);