Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subgroup quad operations #5670

Open
JMS55 opened this issue May 5, 2024 · 0 comments
Open

Subgroup quad operations #5670

JMS55 opened this issue May 5, 2024 · 0 comments
Labels
help wanted Contributions encouraged type: enhancement New feature or request

Comments

@JMS55
Copy link
Contributor

JMS55 commented May 5, 2024

Wgpu 0.20 landed subgroup operations, but is missing quad operations.

E.g. Fidelity FX's single pass downscaling uses them:

FfxFloat32x4 SpdReduceQuad(FfxFloat32x4 v) 
{
    FfxFloat32x4 v0 = v;
    FfxFloat32x4 v1 = subgroupQuadSwapHorizontal(v);
    FfxFloat32x4 v2 = subgroupQuadSwapVertical(v);
    FfxFloat32x4 v3 = subgroupQuadSwapDiagonal(v);
    return SpdReduce4(v0, v1, v2, v3);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributions encouraged type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants