mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-11 17:20:56 +00:00
Don't try and look up the descriptor for push constants in pipe export
This commit is contained in:
@@ -2558,6 +2558,17 @@ void VulkanPipelineStateViewer::exportHTML(QXmlStreamWriter &xml, const VKPipe::
|
||||
if(!bindMap.used)
|
||||
continue;
|
||||
|
||||
// push constants
|
||||
if(!b.bufferBacked)
|
||||
{
|
||||
// could maybe get range/size from ShaderVariable.reg if it's filled out
|
||||
// from SPIR-V side.
|
||||
rows.push_back({QString(), b.name, tr("Push constants"), (qulonglong)0, (qulonglong)0,
|
||||
b.variables.count, b.byteSize});
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
const VKPipe::DescriptorSet &set =
|
||||
pipeline.DescSets[sh.BindpointMapping.ConstantBlocks[i].bindset];
|
||||
const VKPipe::DescriptorBinding &bind =
|
||||
@@ -2599,19 +2610,6 @@ void VulkanPipelineStateViewer::exportHTML(QXmlStreamWriter &xml, const VKPipe::
|
||||
if(name.isEmpty())
|
||||
name = tr("UBO %1").arg(ToQStr(descriptorBind.res));
|
||||
|
||||
// push constants
|
||||
if(!b.bufferBacked)
|
||||
{
|
||||
setname = QString();
|
||||
slotname = b.name;
|
||||
name = tr("Push constants");
|
||||
byteOffset = 0;
|
||||
length = 0;
|
||||
|
||||
// could maybe get range/size from ShaderVariable.reg if it's filled out
|
||||
// from SPIR-V side.
|
||||
}
|
||||
|
||||
rows.push_back({setname, slotname, name, (qulonglong)byteOffset, (qulonglong)length,
|
||||
numvars, b.byteSize});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user