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

Class BufferConfiguration

qrenderdoc/Windows/BufferViewer.cpp:534–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532};
533
534struct BufferConfiguration
535{
536 uint32_t curInstance = 0, curView = 0;
537 uint32_t numRows = 0, unclampedNumRows = 0;
538 uint32_t pagingOffset = 0;
539
540 Packing::Rules packing;
541 ShaderConstant fixedVars;
542 rdcarray<ShaderVariable> evalVars;
543 uint32_t repeatStride = 1;
544 uint32_t repeatOffset = 0;
545
546 QString statusString;
547
548 bool noVertices = false;
549 bool noInstances = false;
550
551 // we can have two index buffers for VSOut data:
552 // the original index buffer is used for the displayed value (in displayIndices), and the actual
553 // potentially remapped or permuated index buffer used for fetching data (in indices).
554 BufferData *displayIndices = NULL;
555 int32_t displayBaseVertex = 0;
556 BufferData *indices = NULL;
557 int32_t baseVertex = 0;
558
559 rdcfixedarray<uint32_t, 3> dispatchSize;
560 rdcarray<TaskGroupSize> taskSizes;
561 rdcarray<uint32_t> meshletVertexPrefixCounts;
562 uint32_t taskOrMeshletOffset = 0;
563 uint64_t perPrimitiveOffset = 0;
564 uint32_t perPrimitiveStride = 0;
565 Topology topology = Topology::TriangleList;
566
567 rdcarray<ShaderConstant> columns;
568 rdcarray<BufferElementProperties> props;
569
570 QVector<PixelValue> generics;
571 QVector<bool> genericsEnabled;
572 QList<BufferData *> buffers;
573 uint32_t primRestart = 0;
574
575 BufferConfiguration() = default;
576 BufferConfiguration(const BufferConfiguration &o) = delete;
577 ~BufferConfiguration() { reset(); }
578 BufferConfiguration &operator=(const BufferConfiguration &o)
579 {
580 reset();
581
582 curInstance = o.curInstance;
583 numRows = o.numRows;
584 unclampedNumRows = o.unclampedNumRows;
585 pagingOffset = o.pagingOffset;
586
587 packing = o.packing;
588 fixedVars = o.fixedVars;
589 evalVars = o.evalVars;
590 repeatStride = o.repeatStride;
591 repeatOffset = o.repeatOffset;

Callers 1

ClearModelsMethod · 0.85

Calls 2

resetFunction · 0.50
refMethod · 0.45

Tested by

no test coverage detected