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

[Fix] Fixes handling uf (u/i)sampler2DArray shader translation for WebGPU #7120

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Nov 19, 2024

the u or i prefix needs to be added to the line where we define a sampler

example, instead of this:
#define uTmpTexture sampler2DArray(uTmpTexture_texture, uTmpTexture_sampler)
we generate this
#define uTmpTexture usampler2DArray(uTmpTexture_texture, uTmpTexture_sampler)

related to https://forum.playcanvas.com/t/is-usampler2darray-available-in-webgpu/38289

@mvaligursky mvaligursky changed the base branch from main to main_v1 November 19, 2024 11:29
@mvaligursky mvaligursky self-assigned this Nov 19, 2024
@mvaligursky mvaligursky added bug area: graphics Graphics related issue labels Nov 19, 2024
@mvaligursky mvaligursky requested a review from a team November 19, 2024 11:31
@mvaligursky mvaligursky merged commit a05d86e into main_v1 Nov 20, 2024
1 check passed
@mvaligursky mvaligursky deleted the mv-usampler-fix branch November 20, 2024 11:44
mvaligursky added a commit that referenced this pull request Nov 20, 2024
…bGPU (#7120)

Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants