• Advertisement
Sign in to follow this  

Which type of buffer i should use to update it on every frame

Recommended Posts

I want to simulate cloth and i use DirectX12. Which type of buffer i should use for its vertex buffer? And how i need to update it. I'm mostly looking for a highlevel overview and if somewhere on the web exists opensource project implementing it the reference would be of help.

For now i have created allocator for upload buffers. Namely i have D3D12_HEAP_TYPE_UPLOAD heaps as pages, which are always mapped and i'm going to use as intermediate buffers to upload cnhaged vertex data to D3D12_HEAP_TYPE_DEFAULT buffers. What's next? Every time when copying i need to transition state of defualt buffer. So i will not be able to read from in shader before copying finished. Is it supposed to be so or there is a better design? Should i use several copies of the same default buffers and switch between them?

Edited by Harmyder

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Advertisement