mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-28 17:37:11 +02:00
Implement BFI, BRK, FLO, FSWZADD, PBK, SHFL and TXD shader instructions, misc. fixes
This commit is contained in:
parent
5fb601a2fe
commit
dd8a838a81
38 changed files with 972 additions and 166 deletions
|
@ -0,0 +1,7 @@
|
|||
float Helper_SwizzleAdd(float x, float y, int mask)
|
||||
{
|
||||
vec4 xLut = vec4(1.0, -1.0, 1.0, 0.0);
|
||||
vec4 yLut = vec4(1.0, 1.0, -1.0, 1.0);
|
||||
int lutIdx = mask >> int(gl_SubGroupInvocationARB & 3u) * 2;
|
||||
return x * xLut[lutIdx] + y * yLut[lutIdx];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue