Advertisement

Problems with Compute Shaders

Started by August 05, 2019 11:34 AM
4 comments, last by Nightheart 5 years, 3 months ago

Hi, I have a problem with my compute shaders. They compile fine and the program runs at optimal FPS but they appear to output nothing. I have tried to debug it for a couple of days but have not found the cause yet.

The first one is supposed to just increase a value every frame (to simulate snow piling up).fill.PNG

The second shader should write deformations caused by objects at the given world position into a texture and then determine the minimum between all values wrote to the cell. It also writes the y-value of the world position to the least significant bits of the 32-bit uint uav for later processing.deform.PNG

This is the call in the methods:

call.PNG

Thanks in advance,

Tobi

inline.PNG

I assume you've run with the Debug Layer enabled to check it's clean and error free?

I also assume that the comment "//called by dispatch(1,1024,1)" is wrong?

Adam Miles - Principal Software Development Engineer - Microsoft Xbox Advanced Technology Group

Advertisement

yeah I am running with Debug Layer enabled and there are no errors or warnings.

The comment is not up to date that is true.

Have you tried using RenderDoc to debug what's going on?

Adam Miles - Principal Software Development Engineer - Microsoft Xbox Advanced Technology Group

I am currently debugging the frames. The resources are all bound correctly but the data is not changing inside the UAV.

This topic is closed to new replies.

Advertisement