Advertisement

UAV Counter Reading Issue

Started by November 23, 2019 02:29 AM
0 comments, last by iGrfx 4 years, 9 months ago

The procedure is:

  1. UAVBuffer.IncrementCounter() in first dispatch.
  2. UAV barrier waits for the previous op is done.
  3. Read the counter value by UAVBuffer.Load(0)

I always got the value "0".

I used PIX to check what's going on:

949027257_.JPG.64489cb66ad64114db0381c85a933158.JPG

It shows that the reading op should be fine. 

And below is what a counter buffer view in PIX(in the first dispatch):

1163522934_1.thumb.JPG.aba2d5e98744516d2ab178777c50e407.JPG

what the counter buffer view show in counter reading dispatch:

1120485800_2.thumb.JPG.9bba0347ba486fe9a1e17ecbaf255683.JPG

I init counter as a 32-bit(4 bytes) buffer, I don't understand why PIX showed the buffer count is 27,550. Does this make my counter reading got the wrong value? 

 

This topic is closed to new replies.

Advertisement