copyBufferToBuffer currently has this signature:
encoder.copyBufferToBuffer(source, sourceOffset, destination, destinationOffset, size)
Where all 5 parameters are required. So far, 9 times out of 10 I'm copying one entire buffer to another entire buffer, so I'm wondering, could we make destinationOffset default to 0 and size default to min(sourceBuffer.size - sourceOffset, destinationBuffer.size - destinationOffset)?
Then I could just do
encoder.copyBufferToBuffer(someStorageBuffer, 0, someMappableBuffer)
vs what I have to do now
encoder.copyBufferToBuffer(someStorageBuffer, 0, someMappableBuffer, 0, someMappableBuffer.size)
It's really only a minor inconvenience so not a big deal but I thought I'd ask anyway. writeBuffer has defaults for offset and size.
copyBufferToBuffercurrently has this signature:Where all 5 parameters are required. So far, 9 times out of 10 I'm copying one entire buffer to another entire buffer, so I'm wondering, could we make
destinationOffsetdefault to 0 andsizedefault tomin(sourceBuffer.size - sourceOffset, destinationBuffer.size - destinationOffset)?Then I could just do
vs what I have to do now
It's really only a minor inconvenience so not a big deal but I thought I'd ask anyway.
writeBufferhas defaults for offset and size.