Quick question about dynamic data transfering #1084
-
A located a place in code where dynamic data is transfered: earlyTransferTask->transferDynamicData(); And inside that function i didn't found any links to size of dynamic array then it was Dirty(). So:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
In Vulkan you can't resize GPU resources, so the VSG by design works with fixed size vsg::Data - which is why you won't find and resize methods in vsg::Array, Array2D and Array3D. If you want to alter the size of resources you'll need to either size the data you create to big enough for all expected usage, or allocate new data and associated buffers and replace the original ones with the new ones. You don't say anything about what you are doing and what you want to resize so we can't provide any guidance on what might be appropriate in your case, If you provide more details we should be able to point you in right direction. |
Beta Was this translation helpful? Give feedback.
In Vulkan you can't resize GPU resources, so the VSG by design works with fixed size vsg::Data - which is why you won't find and resize methods in vsg::Array, Array2D and Array3D.
If you want to alter the size of resources you'll need to either size the data you create to big enough for all expected usage, or allocate new data and associated buffers and replace the original ones with the new ones.
You don't say anything about what you are doing and what you want to resize so we can't provide any guidance on what might be appropriate in your case, If you provide more details we should be able to point you in right direction.