re-render threads with user handle of reply.
This commit is contained in:
1 parent
1ceb4b1583
commit
f8380db665
515 files changed
+2042
-1496
No files matched your search
+1
-1
@@ -26,7 +26,7 @@ parent_post_id: "1781724279798686001"
|
||||
|
||||
## Branch
|
||||
|
||||
**1/**
|
||||
**1/** @jaap_null
|
||||
|
||||
@KostasAAA It's a silly thing on many levels. The entire arch. limitation is awkward, then the way compilers deal (or not deal) with it is just broken. Sad to see it's still around.
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ parent_post_id: "1781724279798686001"
|
||||
|
||||
## Branch
|
||||
|
||||
**1/**
|
||||
**1/** @matiasgoldberg
|
||||
|
||||
@KostasAAA What's the value of shaderSampledImageArrayDynamicIndexing?
|
||||
|
||||
|
||||
+3
-3
@@ -25,19 +25,19 @@ in_reply_to: ""
|
||||
|
||||
## Thread
|
||||
|
||||
**1/**
|
||||
**1/** @KostasAAA
|
||||
|
||||
When using arrays of resources/bindless, it's worth paying attention to index divergence. Even if using thread divergent indices, the compiler will use the index from the first active thread to access a resource, for all threads in the wave, which can cause hard to find bugs 1/3
|
||||
|
||||

|
||||
|
||||
**2/**
|
||||
**2/** @KostasAAA
|
||||
|
||||
This happens even when compiler knows that the index varies per thread. To fix this you need to use the NonUniformResourceIndex qualifier. The compiler will then add a waterfall loop to batch wave threads by resource index and ensure that each thread accesses the correct one. 2/3
|
||||
|
||||

|
||||
|
||||
**3/**
|
||||
**3/** @KostasAAA
|
||||
|
||||
This can have a performance impact though, with the worst case being each thread indexing a different resource, both in terms of thread coherence (looping over each thread individually) and texture cache. For more info https://www.asawicki.info/news_1734_which_values_are_scalar_in_a_shader 3/3
|
||||
|
||||
|
||||
Reference in new issue
Block a user