| 5197 | } |
| 5198 | |
| 5199 | void 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 | |
| 5227 | void BufferViewer::ViewTexture(ResourceId id, const Subresource &sub, const rdcstr &format) |
| 5228 | { |
no test coverage detected