NVIDIAGameWorks / FleX

Other
669 stars 100 forks source link

Missing feature: send gpu data (e.g. SDF to SDF) to Flex in D3D (or OpenGL) #53

Open CK85 opened 6 years ago

CK85 commented 6 years ago

Hi,

I like to send device->device updates of SDF data to FleX without using a CPU readback.

The reason: I created a smooth voxel terrain via SDFs on the GPU (there is no readback to the CPU), and now I like to send the procedural terrain gpu data directly to FleX to create a collision. Currently SDF to SDF would be nice, but it might also be fine with a tri-mesh, if that works.

I only know that I can use NvFlexRegisterD3DBuffer to send Flex data directly to a compute buffer, but not the other way round.

Best, Chris

mmacklin commented 6 years ago

Hi Chris,

You are right that this functionality is currently missing from the D3D impl. It is assuming SDF data comes from host. There's no real restriction here so we will work to fix this for the next point release.

Thanks, Miles

CK85 commented 6 years ago

Ok, thanks!

mrvux commented 5 years ago

Alternatively, on top of doing a device->device update.

Could also we get access to unordered view directly? (so could use a write compute shader and save a copy, or do only partial updates if needed).

digitalwannabe commented 4 years ago

+1: I also need this