Sign in to follow this  
0x23

Bounding Box with Compute Shader

Recommended Posts

0x23    110

Hello everybody,

 

I have a huge mesh on the GPU and want to compute its bounding box in a compute shader.

The implementation will be straight foreward with the  InterlockedMin/Max functions. My question is

how do I return the result (the bounding box) which consists of 6 float values to the CPU ?

 

Thank you in advance ;)

 

Share this post


Link to post
Share on other sites
Jason Z    6436

Also keep in mind that D3D 11.2 (which is currently restricted to Win8.1...) allows you to skip the staging resource and get access to the data directly.  That simplifies the process considerably, but the jury is still out regarding what kind of performance impact there is - if any at all.

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