| 5150 | } |
| 5151 | |
| 5152 | void 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 | |
| 5175 | BufferViewer *BufferViewer::HasCBufferView(ShaderStage stage, uint32_t slot, uint32_t idx) |
| 5176 | { |