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. | |
| int | binding {-1} |
| QRhiShaderResourceBinding::StageFlags | stages {} |
| int | input_port_index {-1} |
| int64_t | declared_size {} |
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.
The documentation for this struct was generated from the following file: