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

Method ViewTexture

qrenderdoc/Windows/BufferViewer.cpp:5227–5252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5225}
5226
5227void BufferViewer::ViewTexture(ResourceId id, const Subresource &sub, const rdcstr &format)
5228{
5229 if(!m_Ctx.IsCaptureLoaded())
5230 return;
5231
5232 m_IsBuffer = false;
5233 m_ByteOffset = 0;
5234 m_ByteSize = UINT64_MAX;
5235 m_BufferID = id;
5236 m_TexSub = sub;
5237
5238 updateLabelsAndLayout();
5239
5240 TextureDescription *tex = m_Ctx.GetTexture(id);
5241 if(tex)
5242 {
5243 m_ObjectByteSize = tex->byteSize;
5244
5245 if(m_TexSub.sample == ~0U)
5246 m_TexSub.sample = tex->msSamp - 1;
5247 }
5248
5249 m_PagingByteOffset = 0;
5250
5251 ui->formatSpecifier->setAutoFormat(format);
5252}
5253
5254void BufferViewer::ScrollToRow(int32_t row, MeshDataStage stage)
5255{

Callers 8

ViewTextureAsBufferMethod · 0.45
itemClickedMethod · 0.45
DescriptorViewerMethod · 0.45

Calls 3

setAutoFormatMethod · 0.80
IsCaptureLoadedMethod · 0.45
GetTextureMethod · 0.45

Tested by 1