mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Format VK_WHOLE_SIZE properly on texel buffers in pipeline state
This commit is contained in:
@@ -790,10 +790,13 @@ bool VulkanPipelineStateViewer::setViewDetails(RDTreeWidgetItem *node, const Des
|
||||
|
||||
if(descriptor.byteOffset + dynamicOffset > 0 || descriptor.byteSize < buf->length)
|
||||
{
|
||||
uint64_t effectiveSize = descriptor.byteSize;
|
||||
if(descriptor.byteSize == UINT64_MAX)
|
||||
effectiveSize = buf->length - (descriptor.byteOffset + dynamicOffset);
|
||||
text +=
|
||||
tr("The view covers bytes %1-%2.\nThe buffer is %3 bytes in length.\n")
|
||||
.arg(Formatter::HumanFormat(descriptor.byteOffset + dynamicOffset, Formatter::OffsetSize))
|
||||
.arg(Formatter::HumanFormat(descriptor.byteOffset + dynamicOffset + descriptor.byteSize,
|
||||
.arg(Formatter::HumanFormat(descriptor.byteOffset + dynamicOffset + effectiveSize,
|
||||
Formatter::OffsetSize))
|
||||
.arg(Formatter::HumanFormat(buf->length, Formatter::OffsetSize));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user