MCPcopy Create free account
hub / github.com/baldurk/renderdoc / ViewCBuffer

Method ViewCBuffer

qrenderdoc/Windows/BufferViewer.cpp:5199–5225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5197}
5198
5199void BufferViewer::ViewCBuffer(const ShaderStage stage, uint32_t slot, uint32_t idx)
5200{
5201 if(!m_Ctx.IsCaptureLoaded())
5202 return;
5203
5204 m_IsBuffer = true;
5205 m_ByteOffset = 0;
5206 m_ByteSize = UINT64_MAX;
5207 m_BufferID = ResourceId();
5208 m_CBufferSlot = {stage, slot, idx};
5209 m_TexSub = {0, 0, 0};
5210
5211 updateLabelsAndLayout();
5212
5213 m_ObjectByteSize = 0;
5214 m_PagingByteOffset = 0;
5215
5216 // enable the button to toggle on formatting, so we can pre-fill with a sensible format when it's
5217 // enabled
5218 ui->setFormat->setVisible(true);
5219
5220 ui->formatSpecifier->setFormat(QString());
5221 ui->formatSpecifier->setVisible(false);
5222 ui->formatSpecifier->setAutoFormat(QString());
5223
5224 m_CBufferViews.push_back(this);
5225}
5226
5227void BufferViewer::ViewTexture(ResourceId id, const Subresource &sub, const rdcstr &format)
5228{

Callers 1

ViewConstantBufferMethod · 0.80

Calls 6

setAutoFormatMethod · 0.80
ResourceIdFunction · 0.50
QStringFunction · 0.50
IsCaptureLoadedMethod · 0.45
setFormatMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected