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

Method ViewBuffer

qrenderdoc/Windows/BufferViewer.cpp:5152–5173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5150}
5151
5152void BufferViewer::ViewBuffer(uint64_t byteOffset, uint64_t byteSize, ResourceId id,
5153 const rdcstr &format)
5154{
5155 if(!m_Ctx.IsCaptureLoaded())
5156 return;
5157
5158 m_IsBuffer = true;
5159 m_ByteOffset = byteOffset;
5160 m_ByteSize = byteSize;
5161 m_BufferID = id;
5162 m_TexSub = {0, 0, 0};
5163
5164 updateLabelsAndLayout();
5165
5166 BufferDescription *buf = m_Ctx.GetBuffer(id);
5167 if(buf)
5168 m_ObjectByteSize = buf->length;
5169
5170 m_PagingByteOffset = 0;
5171
5172 ui->formatSpecifier->setAutoFormat(format);
5173}
5174
5175BufferViewer *BufferViewer::HasCBufferView(ShaderStage stage, uint32_t slot, uint32_t idx)
5176{

Callers 15

itemClickedMethod · 0.45
ViewTextureMethod · 0.45
DescriptorViewerMethod · 0.45
cbuffer_itemActivatedMethod · 0.45
cbuffer_itemActivatedMethod · 0.45
predicateView_clickedMethod · 0.45

Calls 3

setAutoFormatMethod · 0.80
IsCaptureLoadedMethod · 0.45
GetBufferMethod · 0.45

Tested by 1