#[repr(C)]pub struct GPUQueue {
reflector_: Reflector,
channel: WebGPU,
device: DomRefCell<Option<Dom<GPUDevice>>>,
label: DomRefCell<Option<USVString>>,
queue: WebGPUQueue,
}
Fields
reflector_: Reflector
channel: WebGPU
device: DomRefCell<Option<Dom<GPUDevice>>>
label: DomRefCell<Option<USVString>>
queue: WebGPUQueue
Implementations
sourceimpl GPUQueue
impl GPUQueue
fn __assert_parent_type(&self)
sourceimpl GPUQueue
impl GPUQueue
fn new_inherited(channel: WebGPU, queue: WebGPUQueue) -> Self
pub fn new(
global: &GlobalScope,
channel: WebGPU,
queue: WebGPUQueue
) -> Root<Dom<Self>>
sourceimpl GPUQueue
impl GPUQueue
pub fn set_device(&self, device: &GPUDevice)
Trait Implementations
sourceimpl DomObjectWrap for GPUQueue
impl DomObjectWrap for GPUQueue
sourceconst WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::GPUQueueBinding::GPUQueueBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::gpuqueue::GPUQueue>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::gpuqueue::GPUQueue>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::GPUQueueBinding::GPUQueueBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::gpuqueue::GPUQueue>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::gpuqueue::GPUQueue>>}
Function pointer to the general wrap function type
sourceimpl GPUQueueMethods for GPUQueue
impl GPUQueueMethods for GPUQueue
sourcefn GetLabel(&self) -> Option<USVString>
fn GetLabel(&self) -> Option<USVString>
https://gpuweb.github.io/gpuweb/#dom-gpuobjectbase-label
sourcefn SetLabel(&self, value: Option<USVString>)
fn SetLabel(&self, value: Option<USVString>)
https://gpuweb.github.io/gpuweb/#dom-gpuobjectbase-label
sourcefn Submit(&self, command_buffers: Vec<Root<Dom<GPUCommandBuffer>>>)
fn Submit(&self, command_buffers: Vec<Root<Dom<GPUCommandBuffer>>>)
https://gpuweb.github.io/gpuweb/#dom-gpuqueue-submit
sourcefn WriteBuffer(
&self,
buffer: &GPUBuffer,
buffer_offset: u64,
data: BufferSource,
data_offset: u64,
size: Option<u64>
) -> Result<(), Error>
fn WriteBuffer(
&self,
buffer: &GPUBuffer,
buffer_offset: u64,
data: BufferSource,
data_offset: u64,
size: Option<u64>
) -> Result<(), Error>
https://gpuweb.github.io/gpuweb/#dom-gpuqueue-writebuffer
sourcefn WriteTexture(
&self,
destination: &GPUTextureCopyView,
data: BufferSource,
data_layout: &GPUTextureDataLayout,
size: GPUExtent3D
) -> Result<(), Error>
fn WriteTexture(
&self,
destination: &GPUTextureCopyView,
data: BufferSource,
data_layout: &GPUTextureDataLayout,
size: GPUExtent3D
) -> Result<(), Error>
https://gpuweb.github.io/gpuweb/#dom-gpuqueue-writetexture
sourceimpl IDLInterface for GPUQueue
impl IDLInterface for GPUQueue
sourceimpl MallocSizeOf for GPUQueue
impl MallocSizeOf for GPUQueue
sourcefn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself. Read more
sourceimpl MutDomObject for GPUQueue
impl MutDomObject for GPUQueue
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl ToJSValConvertible for GPUQueue
impl ToJSValConvertible for GPUQueue
sourceunsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
Convert
self
to a JSVal
. JSAPI failure causes a panic.Auto Trait Implementations
impl !RefUnwindSafe for GPUQueue
impl !Send for GPUQueue
impl !Sync for GPUQueue
impl Unpin for GPUQueue
impl !UnwindSafe for GPUQueue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert