1859788005445414927, 1781724275159728279
This commit is contained in:
1 parent
29e5757746
commit
d8fd501cfa
8 files changed
+313
No files matched your search
+35
@@ -0,0 +1,35 @@
|
||||
---
|
||||
title: "@KostasAAA It's a silly thing on many levels."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/jaap_null/status/1783039982560784428"
|
||||
author: "Jaap van Muijden"
|
||||
handle: jaap_null
|
||||
post_id: "1783039982560784428"
|
||||
date: 2024-04-24
|
||||
archived: 2026-08-25
|
||||
draft: true
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- KostasAAA
|
||||
description: "@KostasAAA It's a silly thing on many levels."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1781724279798686001"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/jaap_null/status/1783039982560784428
|
||||
- Author: Jaap van Muijden (@jaap_null)
|
||||
- Posted: 2024-04-24 07:47:13
|
||||
|
||||
## Branch
|
||||
|
||||
**1/**
|
||||
|
||||
@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.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/KostasAAA/2024-04-20-when-using-arrays-of-resources-bindless-its-worth]]
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
---
|
||||
title: "@KostasAAA What's the value of shaderSampledImageArrayDynamicIndexing?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/matiasgoldberg/status/1783166450733113360"
|
||||
author: "Matías N. Goldberg"
|
||||
handle: matiasgoldberg
|
||||
post_id: "1783166450733113360"
|
||||
date: 2024-04-24
|
||||
archived: 2026-08-25
|
||||
draft: true
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- KostasAAA
|
||||
description: "@KostasAAA What's the value of shaderSampledImageArrayDynamicIndexing?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1781724279798686001"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/matiasgoldberg/status/1783166450733113360
|
||||
- Author: Matías N. Goldberg (@matiasgoldberg)
|
||||
- Posted: 2024-04-24 16:09:46
|
||||
|
||||
## Branch
|
||||
|
||||
**1/**
|
||||
|
||||
@KostasAAA What's the value of shaderSampledImageArrayDynamicIndexing?
|
||||
|
||||
I'm seeing an alarming number of reports (93%!!!) saying this is true, when that'd be a blatant lie.
|
||||
|
||||
https://vulkan.gpuinfo.org/listdevicescoverage.php?feature=shaderSampledImageArrayDynamicIndexing&platform=all
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/KostasAAA/2024-04-20-when-using-arrays-of-resources-bindless-its-worth]]
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
---
|
||||
title: "When using arrays of resources/bindless, it's worth paying attention to index divergence."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/KostasAAA/status/1781724275159728279"
|
||||
author: "Kostas Anagnostou"
|
||||
handle: KostasAAA
|
||||
post_id: "1781724275159728279"
|
||||
date: 2024-04-20
|
||||
archived: 2026-08-25
|
||||
draft: true
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- KostasAAA
|
||||
description: "When using arrays of resources/bindless, it's worth paying attention to index divergence."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/KostasAAA/status/1781724275159728279
|
||||
- Author: Kostas Anagnostou (@KostasAAA)
|
||||
- Posted: 2024-04-20 16:39:04
|
||||
|
||||
## Thread
|
||||
|
||||
**1/**
|
||||
|
||||
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/**
|
||||
|
||||
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/**
|
||||
|
||||
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
|
||||
|
||||
Branches: [[archive/threads/KostasAAA/2024-04-20-when-using-arrays-of-resources-bindless-its-worth/2024-04-24-jaap_null-its-a-silly-thing-on-many-levels-the-entire-arch]], [[archive/threads/KostasAAA/2024-04-20-when-using-arrays-of-resources-bindless-its-worth/2024-04-24-matiasgoldberg-whats-the-value-of]]
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
title: KostasAAA
|
||||
type: note
|
||||
draft: false
|
||||
description: Archived threads by KostasAAA.
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- KostasAAA
|
||||
---
|
||||
|
||||
- [[archive/threads/KostasAAA/2024-04-20-when-using-arrays-of-resources-bindless-its-worth]]
|
||||
Reference in new issue
Block a user