Queue::write_buffer_with()
needs a more appropriate name
#7006
Labels
area: api
Issues related to API surface
Queue::write_buffer_with()
needs a more appropriate name
#7006
When originally envisioned,
write_buffer_with()
took a closure. It no longer does, and so the “with” part of the name no longer means anything. “With what?” It should be given a more meaningful name.I don't have any really good ideas for what it should be called, though.
If it weren’t for the WebGPU specification defining
writeBuffer()
, and the churn, we could imagine renamingwrite_buffer_with()
towrite_buffer()
, and rename the currentwrite_buffer()
(that copies from a provided slice) tocopy_to_buffer()
.write_buffer_mapping()
?The text was updated successfully, but these errors were encountered: