How do you "map/unmap" resources from main thread to worker thread? I have never heard of this before.
In my head I create a texture or a vertex buffer on the main thread, then push a pointer to the resource to a Critical_Section vector, retrieve that from the worker thread, copy data over send it back.
Some code might help me understand ;)
EDIT: Is it as simple as Addref(), Release() when sending and retrieving it?
Show differencesHistory of post edits
#1Tispe
Posted 08 November 2012 - 02:20 AM
How do you "map/unmap" resources from main thread to worker thread? I have never heard of this before.
In my head I create a texture or a vertex buffer on the main thread, then push a pointer to the resource to a Critical_Section vector, retrieve that from the worker thread, copy data over send it back.
Some code might help me understand ;)
In my head I create a texture or a vertex buffer on the main thread, then push a pointer to the resource to a Critical_Section vector, retrieve that from the worker thread, copy data over send it back.
Some code might help me understand ;)