|
KiCad PCB EDA Suite
|
Staging data owned by the upload command, so the UI thread can reuse its source at once without racing the render thread. More...
#include <rhi_upload_commands.h>
Public Member Functions | |
| bool | HasStaging () const |
Public Attributes | |
| std::shared_ptr< const void > | stagingOwner |
| const void * | stagingData = nullptr |
| size_t | stagingSize = 0 |
Staging data owned by the upload command, so the UI thread can reuse its source at once without racing the render thread.
The owner is type-erased so a producer can either copy bytes or move in a typed vector. The data pointer stays valid as long as the owner lives.
Definition at line 41 of file rhi_upload_commands.h.
|
inline |
Definition at line 47 of file rhi_upload_commands.h.
References stagingData, and stagingSize.
| const void* RHI_STAGING::stagingData = nullptr |
Definition at line 44 of file rhi_upload_commands.h.
Referenced by HasStaging(), RhiUploadAdoptStaging(), and RhiUploadCopyStaging().
| std::shared_ptr<const void> RHI_STAGING::stagingOwner |
Definition at line 43 of file rhi_upload_commands.h.
Referenced by RhiUploadAdoptStaging(), and RhiUploadCopyStaging().
| size_t RHI_STAGING::stagingSize = 0 |
Definition at line 45 of file rhi_upload_commands.h.
Referenced by HasStaging(), RhiUploadAdoptStaging(), and RhiUploadCopyStaging().