[remote] BufferDescriptor

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
sagudev authored and Teodor Tanasoaia committed 2026-08-26 12:31:17 +02:00
1 parent 87c1033145
commit a4e00967fa
2 files changed
+5 -3

No files matched your search

+1
View File
@@ -50,3 +50,4 @@ assert_ffi_safe!(RequestAdapterOptions);
pub type DeviceDescriptor<'a> = wgt::DeviceDescriptor<Label<'a>>;
pub type QueueDescriptor<'a> = wgt::QueueDescriptor<Label<'a>>;
pub type BufferDescriptor<'a> = wgt::BufferDescriptor<Label<'a>>;
+4 -3
View File
@@ -3,6 +3,7 @@ use core::ptr::NonNull;
use wgpu_core_remote_types::{
encoders::RenderBundleDescriptor,
pipelines::{ComputePipelineDescriptor, RenderPipelineDescriptor},
BufferDescriptor,
};
use wgpu_core::{
@@ -59,7 +60,7 @@ impl Global {
pub fn device_create_buffer(
&self,
device_id: DeviceId,
desc: &resource::BufferDescriptor,
desc: &BufferDescriptor,
id_in: id::BufferId,
) -> (id::BufferId, Option<CreateBufferError>) {
let mut hub = self.hub.borrow_mut();
@@ -108,7 +109,7 @@ impl Global {
&self,
device_id: DeviceId,
id_in: id::BufferId,
desc: &resource::BufferDescriptor,
desc: &BufferDescriptor,
) {
let mut hub = self.hub.borrow_mut();
let Hub {
@@ -287,7 +288,7 @@ impl Global {
&self,
hal_buffer: A::Buffer,
device_id: DeviceId,
desc: &resource::BufferDescriptor,
desc: &BufferDescriptor,
id_in: id::BufferId,
) -> (id::BufferId, Option<CreateBufferError>) {
let mut hub = self.hub.borrow_mut();