mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Extended Queue::write_* docs to reflect overrun error (#2250)
* Extended Queue::write_buffer to reflect overrun error * Extended Queue::write_texture doc to reflect overrun error
This commit is contained in:
@@ -3157,6 +3157,8 @@ impl Queue {
|
||||
/// This method is intended to have low performance costs.
|
||||
/// As such, the write is not immediately submitted, and instead enqueued
|
||||
/// internally to happen at the start of the next `submit()` call.
|
||||
///
|
||||
/// This method fails if `data` overruns the size of `buffer` starting at `offset`.
|
||||
pub fn write_buffer(&self, buffer: &Buffer, offset: BufferAddress, data: &[u8]) {
|
||||
Context::queue_write_buffer(&*self.context, &self.id, &buffer.id, offset, data)
|
||||
}
|
||||
@@ -3166,6 +3168,8 @@ impl Queue {
|
||||
/// This method is intended to have low performance costs.
|
||||
/// As such, the write is not immediately submitted, and instead enqueued
|
||||
/// internally to happen at the start of the next `submit()` call.
|
||||
///
|
||||
/// This method fails if `data` overruns the size of fragment of `texture` specified with `size`.
|
||||
pub fn write_texture(
|
||||
&self,
|
||||
texture: ImageCopyTexture,
|
||||
|
||||
Reference in New Issue
Block a user