pub struct GPUDevice(/* private fields */);
Implementations§
Source§impl GPUDevice
impl GPUDevice
pub fn create_buffer(&self, descriptor: &GPUBufferDescriptor) -> GPUBuffer
pub fn create_shader_module_from_source(&self, source: &str) -> GPUShaderModule
pub fn create_pipeline_layout( &self, descriptor: &GPUPipelineLayoutDescriptor, ) -> GPUPipelineLayout
pub fn get_queue(&self) -> GPUQueue
pub fn create_command_encoder(&self) -> GPUCommandEncoder
pub fn create_render_pipeline( &self, descriptor: &GPURenderPipelineDescriptor<'_>, ) -> GPURenderPipeline
Auto Trait Implementations§
impl Freeze for GPUDevice
impl RefUnwindSafe for GPUDevice
impl Send for GPUDevice
impl Sync for GPUDevice
impl Unpin for GPUDevice
impl UnwindSafe for GPUDevice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more