mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
[remote] BufferDescriptor
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
1 parent
87c1033145
commit
a4e00967fa
2 files changed
+5
-3
No files matched your search
@@ -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>>;
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user