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

SG_VERTEXFORMAT_HALF3 is not defined in sg_vertex_format #874

Closed
rcases opened this issue Aug 29, 2023 · 1 comment
Closed

SG_VERTEXFORMAT_HALF3 is not defined in sg_vertex_format #874

rcases opened this issue Aug 29, 2023 · 1 comment

Comments

@rcases
Copy link

rcases commented Aug 29, 2023

SG_VERTEXFORMAT_HALF3 is not defined in sg_vertex_format but is used in webgpu backend in _sg_wgpu_vertexformat function
you probably meant SG_VERTEXFORMAT_HALF4, but it would be nice if SG_VERTEXFORMAT_HALF3 existed

@floooh
Copy link
Owner

floooh commented Aug 30, 2023

Yeah it's a typo. HALF3 support is unlikely though because at least WebGPU only supports float16x2 and float16x4:

https://www.w3.org/TR/webgpu/#enumdef-gpuvertexformat

Btw, don't use the WebGPU backend in master, it's incomplete and broken. I'm currently working on 'final' WebGPU support in the sgfx-wgpu branch (you can follow this PR to get an idea how close to merge this is: #865)

@floooh floooh closed this as completed Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants