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

Dusk: support WGSL aliased vector and matrix types #1088

Closed
clickingbuttons opened this issue Oct 26, 2023 · 1 comment
Closed

Dusk: support WGSL aliased vector and matrix types #1088

clickingbuttons opened this issue Oct 26, 2023 · 1 comment
Milestone

Comments

@clickingbuttons
Copy link

Looks like these types parse fine but AstGen fails.

https://gpuweb.github.io/gpuweb/wgsl/#vector-types

Predeclared alias Original type Restrictions
vec2i vec2  
vec3i vec3  
vec4i vec4  
vec2u vec2  
vec3u vec3  
vec4u vec4  
vec2f vec2  
vec3f vec3  
vec4f vec4  
vec2h vec2 Requires the f16 extension.
vec3h vec3
vec4h vec4

https://gpuweb.github.io/gpuweb/wgsl/#matrix-types

Predeclared alias Original type Restrictions
mat2x2f mat2x2  
mat2x3f mat2x3  
mat2x4f mat2x4  
mat3x2f mat3x2  
mat3x3f mat3x3  
mat3x4f mat3x4  
mat4x2f mat4x2  
mat4x3f mat4x3  
mat4x4f mat4x4  
mat2x2h mat2x2 Requires the f16 extension.
mat2x3h mat2x3
mat2x4h mat2x4
mat3x2h mat3x2
mat3x3h mat3x3
mat3x4h mat3x4
mat4x2h mat4x2
mat4x3h mat4x3
mat4x4h mat4x4
@slimsag
Copy link
Member

slimsag commented Oct 28, 2023

Duplicate of #1091

@slimsag slimsag marked this as a duplicate of #1091 Oct 28, 2023
@slimsag slimsag closed this as completed Oct 28, 2023
@slimsag slimsag added this to the Mach 0.3 milestone Nov 5, 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