-
Notifications
You must be signed in to change notification settings - Fork 304
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
[editorial] Consider if there's a much better name for "image copies" #4573
Comments
Here is where we started using the name "image copy": #1375 |
Editor brainstorming: image copy Mull over the following ideas: TextureCopyOrigin |
IMHO we already discussed this with editors and came up with |
I forgot to link to the PR I was looking at, #1375 which was where we originally discussed the names we have now. Currently I am pretty happy with TextureCopy{Origin,DataLayout,BufferLayout}. I do think they're better. It would also mean: |
Jim/Kai discussion:
Full proposal:
(@jimblandy Writing this down, I could also go for replacing the "Tagged" one with EDIT: The "Tagged" lexeme is pretty useful for explaining what it is.) |
What about |
One thing I forgot about is that we do use the word image in in the API, in |
I don't think Origin makes this clearer, but maybe Desc[riptor]? (Also "origin" in web specs is usually talking about e.g. domains and same-origin stuff) On "image", IIRC |
OK, sorry to waffle (since I said in the meeting we probably would drop this), but looking at some proposed names I really do think they're sufficiently less confusing than what we have now. Editors talked again and refined names for
I still have some thoughts bouncing around about possibly slightly better names for the other three, so I may post if I have ideas. Assorted points, mostly from the editors' discussion:
|
The term "image copy"/"ImageCopy" is used to describe buffer<->texture copies - copies from linear memory to non-linear (texture) memory.
GPUImageDataLayout
GPUImageCopyBuffer
GPUImageCopyTexture
GPUImageCopyTextureTagged
GPUImageCopyExternalImage
GPUImageCopyExternalImageSource
But the term "image" is quite overloaded in this domain: Vulkan
VkImage
, JSnew Image()
, HTMLimage
, ....We use these terms in the WebIDL, but only in dictionary names, which we can change without breaking the JS API. However, other language bindings need to put this name in their APIs, so I'd like to consider if we can come up with a better name now, and if it's worth some ecosystem churn to do so (webgpu.h/dawn/wgpu/wgpu-native/emscripten, typescript types, other bindings).
EDIT: We do use the term "image" in
rowsPerImage
however it's really not clear whether they're referring to the same concept. That was the intent, but it doesn't make a ton of sense.The text was updated successfully, but these errors were encountered: