|
Foundation
|
Deferred upload context for transferring data to GPU resources. More...
#include <UploadContext.hpp>
Deferred upload context for transferring data to GPU resources.
| device | The RHI device to use for uploads. |
| allocator | The allocator to use for internal allocations. |
| stagingBudget | The size of the internal staging buffer to use for uploads. |
| UploadContext::UploadContext | ( | RHIDevice * | device, |
| Allocator * | allocator, | ||
| size_t | stagingBudget = 16_MB |
||
| ) |
| UploadContext::~UploadContext | ( | ) |
| void UploadContext::SubmitAndWait | ( | ) |
| void UploadContext::Upload | ( | RHIBuffer * | dst, |
| Span< const char > | data, | ||
| size_t | dstOffset = 0, |
||
| size_t | alignment = 4, |
||
| RHIResourceAccess | dst_access = RHIResourceAccessBits::ShaderRead, |
||
| RHIPipelineStage | dst_stage = RHIPipelineStageBits::AllGraphics |
||
| ) |
| void UploadContext::Upload | ( | RHITexture * | dst, |
| Span< const char > | data, | ||
| RHITextureSubresourceRange | range, | ||
| RHICommandList::CopyImageRegion | region, | ||
| RHIResourceAccess | dst_access = RHIResourceAccessBits::ShaderRead, |
||
| RHIPipelineStage | dst_stage = RHIPipelineStageBits::AllGraphics, |
||
| RHITextureLayout | dst_layout = RHITextureLayout::ShaderReadOnly |
||
| ) |
| void UploadContext::Upload | ( | RHITexture * | dst, |
| Span< const char > | data, | ||
| uint32_t | mipLevel = 0, |
||
| uint32_t | arrayLayer = 0, |
||
| RHITextureAspectFlag | aspect = RHITextureAspectFlagBits::Color, |
||
| RHIResourceAccess | dst_access = RHIResourceAccessBits::ShaderRead, |
||
| RHIPipelineStage | dst_stage = RHIPipelineStageBits::AllGraphics, |
||
| RHITextureLayout | dst_layout = RHITextureLayout::ShaderReadOnly |
||
| ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |