You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is needs proper initResourceViewHints to RZBufferDesc to be set on all buffers to work properly, then we can refine the logic tracking in RZFrameGraphBuffer struct.
Prolem:
Current buffer barriers is more prone to inserting redundant memory barriers, for ex. think of a CBV it can either have a CPU->GPU barrier or a ShaderReadOnly barrier, since the viewHints has these 2 bit sets set, it's hard to deduce for a given preRead function what kind of barrier to use on the CBV, we will add unnecessary memory barriers. Need a better solution to this.
Solving CBV barrier issues:
In preRead/preWrite the default for a CBV is always it's ShaderReadOnly (added new buffer barrier type)
If the buffer is dirty (tracked internally if we mapped it) we change the BufferBarrierType to CPUToGPU
in preWrite if it's a CBV we insert a ShaderReadOnlyBarrier --> if it was last dirty (need to track this again)
The text was updated successfully, but these errors were encountered:
This is needs proper initResourceViewHints to RZBufferDesc to be set on all buffers to work properly, then we can refine the logic tracking in RZFrameGraphBuffer struct.
Prolem:
Current buffer barriers is more prone to inserting redundant memory barriers, for ex. think of a CBV it can either have a CPU->GPU barrier or a ShaderReadOnly barrier, since the viewHints has these 2 bit sets set, it's hard to deduce for a given preRead function what kind of barrier to use on the CBV, we will add unnecessary memory barriers. Need a better solution to this.
Solving CBV barrier issues:
The text was updated successfully, but these errors were encountered: