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

Add support for assigning to swizzles #93

Open
davesmith00000 opened this issue Oct 2, 2023 · 0 comments
Open

Add support for assigning to swizzles #93

davesmith00000 opened this issue Oct 2, 2023 · 0 comments

Comments

@davesmith00000
Copy link
Member

davesmith00000 commented Oct 2, 2023

Currently, assignment to a swizzle is not supported, i.e.:

var v = vec4(1.0)
v.xy = vec2(2.0)

We may add support for this at some point, but for now it's easy enough to workaround (if a bit boiler-platey), like so:

var v = vec4(1.0)
v = vec4(vec2(2.0), v.zw)
@davesmith00000 davesmith00000 changed the title Do we support assigning to swizzles? Add support for assigning to swizzles Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant