| 5225 | } |
| 5226 | |
| 5227 | void 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 | |
| 5254 | void BufferViewer::ScrollToRow(int32_t row, MeshDataStage stage) |
| 5255 | { |