Skip to content

Quick question about dynamic data transfering #1084

Answered by robertosfield
Anshi701 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Anshi701
Comment options

@robertosfield
Comment options

@Anshi701
Comment options

@robertosfield
Comment options

@Anshi701
Comment options

Answer selected by robertosfield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants