KiCad PCB EDA Suite
Loading...
Searching...
No Matches
RHI_STAGING Struct Reference

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>

Inheritance diagram for RHI_STAGING:
RHI_GEOMETRY_UPLOAD RHI_TEXTURE_UPLOAD

Public Member Functions

bool HasStaging () const
 

Public Attributes

std::shared_ptr< const void > stagingOwner
 
const void * stagingData = nullptr
 
size_t stagingSize = 0
 

Detailed Description

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.

Member Function Documentation

◆ HasStaging()

bool RHI_STAGING::HasStaging ( ) const
inline

Definition at line 47 of file rhi_upload_commands.h.

References stagingData, and stagingSize.

Member Data Documentation

◆ stagingData

const void* RHI_STAGING::stagingData = nullptr

Definition at line 44 of file rhi_upload_commands.h.

Referenced by HasStaging(), RhiUploadAdoptStaging(), and RhiUploadCopyStaging().

◆ stagingOwner

std::shared_ptr<const void> RHI_STAGING::stagingOwner

Definition at line 43 of file rhi_upload_commands.h.

Referenced by RhiUploadAdoptStaging(), and RhiUploadCopyStaging().

◆ stagingSize

size_t RHI_STAGING::stagingSize = 0

Definition at line 45 of file rhi_upload_commands.h.

Referenced by HasStaging(), RhiUploadAdoptStaging(), and RhiUploadCopyStaging().


The documentation for this struct was generated from the following file: