Loading...
Searching...
No Matches
score::gfx::MeshBuffers Struct Reference
Public Member Functions | |
| void | enableIndirectDraw (QRhiBuffer *buffer, bool indexed, int64_t byte_size, quint32 byte_offset=0) noexcept |
Public Attributes | |
| ossia::small_vector< BufferView, 2 > | buffers |
| QRhiBuffer * | indirectDrawBuffer {} |
| quint32 | instanceMultiplier {1} |
| bool | useIndirectDraw {false} |
| bool | indirectDrawIndexed {false} |
| bool | gpuIndirectSupported {false} |
| bool | baseInstanceSupported {true} |
| QRhi::BaseInstance: false when the backend ignores firstInstance. | |
| quint32 | indirectDrawOffset {0} |
| quint32 | indirectDrawCount {1} |
| quint32 | indirectDrawStride {0} |
| QRhiBuffer * | indirectCountBuffer {} |
| quint32 | indirectCountOffset {0} |
| QRhiBuffer * | clampedIndirectBuffer {} |
| bool | gpuIndirectCountSupported {false} |
| bool | gpuIndirectMultiSupported {false} |
| ossia::small_vector< ossia::geometry::draw_command, 0 > | cpuDrawCommands |
| QRhiReadbackResult | readbackResult |
| QRhiReadbackResult | countReadbackResult |
Static Public Attributes | |
| static constexpr quint32 | indirect_record_stride = 5 * sizeof(uint32_t) |
Member Data Documentation
◆ clampedIndirectBuffer
| QRhiBuffer* score::gfx::MeshBuffers::clampedIndirectBuffer {} |
Without the count rung: a copy of indirectDrawBuffer's slots with those at or past the GPU-written count zeroed (IndirectCountClamp), at offset 0 and the same stride. The plain indirect rungs draw it instead, so a producer's dead slots are not drawn whatever they hold. Refreshed by the consumer every frame, null when the clamp did not run.
◆ instanceMultiplier
| quint32 score::gfx::MeshBuffers::instanceMultiplier {1} |
Raw raster PIPELINE_STATE INSTANCE_COUNT on a mesh draw: each CPU-issued draw of the mesh draws this many times its instances (shader board R21). Not applied to GPU-indirect draws, whose counts the host never reads, nor to a mesh with per-instance attributes, whose data covers its own instances only.
The documentation for this struct was generated from the following file: