Bug 190029
Summary: | [WHLSL] Add casts between vector types | ||
---|---|---|---|
Product: | WebKit | Reporter: | Thomas Denney <tdenney> |
Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED MOVED | ||
Severity: | Normal | CC: | dino, mmaxfield |
Priority: | P2 | ||
Version: | Other | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 176199 |
Thomas Denney
There are no cast operators that allow you to cast a vector (or matrix, for that matter) element-wise. For example:
operator int4(uint4 v)
{
return int4(int(v.x), int(v.y), int(v.z), int(v.w));
}
Metal supports these; I think they would be a useful utility to add to the standard library.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Myles C. Maxfield
HLSL doesn't have these; I'm not sure we should either.
Myles C. Maxfield
Migrated to https://api.github.com/repos/gpuweb/WHLSL/issues/20
Myles C. Maxfield
https://github.com/gpuweb/WHLSL/issues/20