Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Vetrex and texture buffer feedback from DirectX

Author
Message
Dan Searle
15
Years of Service
User Offline
Joined: 3rd Oct 2009
Location:
Posted: 13th Oct 2009 21:46
Hi,

I want to run custom vertex shaders (on the GPU) to perform stream reduction on a data set, reading back the results to main memory buffers.

1. I set up a set of texture/vertex buffers for the input to the custom shaders.

2. I call them, they do their thing and output to other texture/vertex buffers.

Question is, how do I read back the contents of the modified texture/vertex buffer after the shader has finished?

I'm pretty sure this is possible with DirectX (it is with OpenGL anyway), so is there a way to do this with Dark GDK/Physics calls, or do I need to go to the DirectX API directly?

As an asside, what are the implications of using the DirectX API directly along side Dark GDK/Physics/Lights etc...?

Regards, Dan...
Dan Searle
15
Years of Service
User Offline
Joined: 3rd Oct 2009
Location:
Posted: 14th Oct 2009 11:56
After some more reading, it looks like it's not possible to create a custom Vertex/Texture/Constant buffer in DirectX 9 that is in video memory and can be read back (readable) from the CPU side of things.

I.e. "Steam out" is a new feaure in DirectX 10.

I see that DirectX 10 is at release candidate stage for Windows XP, are there any plans/roadmap for integrating Dark GDK/Physics/Lights etc... with DirectX 10?

There may be an alternative, but this is just an idea at the moment... Is it possible to use CUDA at the same time as DirectX 9? I.e. could I use Dark GDK/Physics/Lights etc and at the same time also use the same video card for CUDA processing?

If this is the way the industry is going, "Stream Out" is going to be an essential tool for next generation games, so DirectX 10 support in Dark GDK would be highly desirable.

Regards, Dan...
Dan Searle
15
Years of Service
User Offline
Joined: 3rd Oct 2009
Location:
Posted: 21st Oct 2009 16:12
Aparently you can render to texture buffers in DX9 HLSL and read the data back, so I might be able to pull this off after all.

Login to post a reply

Server time is: 2024-11-20 13:40:04
Your offset time is: 2024-11-20 13:40:04