We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9923294 commit 800802bCopy full SHA for 800802b
13_BitonicSort/app_resources/common.hlsl
@@ -7,7 +7,7 @@ struct PushConstantData
7
uint64_t deviceBufferAddress;
8
};
9
10
-NBL_CONSTEXPR uint32_t WorkgroupSizeLog2 = 7; // 128 threads
11
-NBL_CONSTEXPR uint32_t ElementsPerThreadLog2 = 1; // 2 elements per thread
12
-NBL_CONSTEXPR uint32_t elementCount = uint32_t(1) << (WorkgroupSizeLog2 + ElementsPerThreadLog2);
+NBL_CONSTEXPR uint32_t WorkgroupSizeLog2 = 10; // 1024 threads (2^10)
+NBL_CONSTEXPR uint32_t ElementsPerThreadLog2 = 2; // 4 elements per thread (2^2) - VIRTUAL THREADING!
+NBL_CONSTEXPR uint32_t elementCount = uint32_t(1) << (WorkgroupSizeLog2 + ElementsPerThreadLog2); // 4096 elements (2^12)
13
#endif
0 commit comments