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
{{ message }}
Repository navigation
numthreads(X,Y,Z) does not support static const constants. #4032
Shaders capable of [numthreads(1,1,1)] (no data sharing between threads) may benefit from runtime decision of number of jobs in workgroup (tune concurency), with typical case where X*dispatchX>=totalX, and totalX is fixed.
Activity
shangjiaxuan commentedon Oct 23, 2021
Shaders capable of [numthreads(1,1,1)] (no data sharing between threads) may benefit from runtime decision of number of jobs in workgroup (tune concurency), with typical case where X*dispatchX>=totalX, and totalX is fixed.
pow2clk commentedon Nov 8, 2021
Hi shangjiaxuan (@shangjiaxuan)!
This has been reported before in #2191. We will continue to work the issue from there, but it would be considered a new language feature.
In the meantime, you can use a
#defineconstant to get similar named behavior