[rs] Implement Send and Sync for BufferReadMapping and BufferWriteMapping
@@ -1025,6 +1025,9 @@ pub struct BufferReadMapping {
buffer_id: wgc::id::BufferId,
}
+unsafe impl Send for BufferReadMapping {}
+unsafe impl Sync for BufferReadMapping {}
+
impl BufferReadMapping
{
pub fn as_slice(&self) -> &[u8] {
@@ -1046,6 +1049,9 @@ pub struct BufferWriteMapping {
buffer_id: wgc::id::BufferId,
}
+unsafe impl Send for BufferWriteMapping {}
+unsafe impl Sync for BufferWriteMapping {}
+
impl BufferWriteMapping
{
pub fn as_slice(&mut self) -> &mut [u8] {
