Loading...
Searching...
No Matches
score::gfx::GraphicsUBO Struct Reference
One UBO sourced from an upstream Buffer port (uniform_input). More...
Detailed Description
One UBO sourced from an upstream Buffer port (uniform_input).
Bound via QRhiShaderResourceBinding::uniformBuffer (std140) rather than the SSBO bufferLoad/bufferStore used for storage_input.
Public Attributes | |
| std::string | name |
| QRhiBuffer * | buffer {} |
| bool | owned {false} |
| Always false for now: borrowed from upstream. | |
| bool | adopted {false} |
Holds a RenderList::adoptBuffer reference on buffer | |
| bool | from_port {false} |
buffer was borrowed through the Buffer input port | |
| int | binding {-1} |
| QRhiShaderResourceBinding::StageFlags | stages {} |
| int | input_port_index {-1} |
| int64_t | offset {0} |
| int64_t | size {0} |
| QString | refused |
| See GraphicsSSBO::refused. | |
| int64_t | declared_size {} |
| int64_t | min_size {} |
| The smallest buffer that can back it: minimumUniformBlockSize (U42). | |
Member Data Documentation
◆ declared_size
| int64_t score::gfx::GraphicsUBO::declared_size {} |
std140 size of the block the shader declares, from the LAYOUT alone. Independent of any upstream buffer, so the placeholder allocated for a never-connected input still covers everything the shader reads.
◆ offset
| int64_t score::gfx::GraphicsUBO::offset {0} |
The published range of a borrowed buffer (shader board U42); size 0 means to its end.
The documentation for this struct was generated from the following file: