Reputation: 43
I'm trying to Create RWStrutruedBuffer with a D3D11_USAGE_STAGING for cpu access
.
error: D3D11_USAGE_STAGING Resource cannot be bound to any parts of the graphics pipeline.
How can get the RWStrutruedBuffer from GPU to CPU? I need the result.thanks for every.
Should I Copy a Resource with a D3D11_USAGE_DEFAULT flag to a Resource with D3D11_USAGE_STAGING ,then read it form CPU?
Upvotes: 0
Views: 587
Reputation: 43
I found the answer just like step 2,I need to Copy resource to other resource that was created with a D3D11_USAGE_STAGING flag,then use map with D3D11_MAP_READ,finally read it.
Upvotes: 2