EDIT: Docs and minor bug fixed 2

This commit is contained in:
2025-10-30 01:41:54 +09:00
parent 0226c0b5b3
commit 235d9b2f83
4 changed files with 35 additions and 13 deletions

View File

@@ -570,7 +570,8 @@ bool RenderGraph::compile()
const RGBufferRecord *rec = _resources.get_buffer(RGBufferHandle{id});
barrier.buffer = rec ? rec->buffer : VK_NULL_HANDLE;
barrier.offset = 0;
barrier.size = rec ? rec->size : VK_WHOLE_SIZE;
// If size is unknown or 0 for imported buffers, use WHOLE_SIZE to satisfy VUID 01188
barrier.size = (rec && rec->size > 0) ? rec->size : VK_WHOLE_SIZE;
pass.preBufferBarriers.push_back(barrier);
if (rec && !rec->imported)