WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
176335
WSL StructTypes and Funcs should be type-specializable
https://bugs.webkit.org/show_bug.cgi?id=176335
Summary
WSL StructTypes and Funcs should be type-specializable
Filip Pizlo
Reported
2017-09-04 13:55:15 PDT
I think that we should generalize the power of casts. Specifically, make it possible to say: void foo<|int>() { ... } void foo<|double>() { ... } Then when you call foo<int>(), you get the first one, and if you call foo<double>(), you get the second one. If you call foo<bool>(), you get an error. In general, the syntax would be: void foo<typeVariables | typeParameters>() So you could say: void foo<T, U:numeric | vec4<T>, U>() { ... } You'd get that function if you called: foo<vec4<int>, double>();
Attachments
Add attachment
proposed patch, testcase, etc.
Myles C. Maxfield
Comment 1
2018-08-29 17:04:08 PDT
We've removed generics from the language, so this bug doesn't make much sense any more.
Myles C. Maxfield
Comment 2
2018-10-13 16:59:08 PDT
Migrated to
https://github.com/gpuweb/WHLSL/issues/151
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug