pub trait GPUBufferMethods<D: DomTypes> {
// Required methods
fn Size(&self) -> u64;
fn Usage(&self) -> u32;
fn MapState(&self) -> GPUBufferMapState;
fn MapAsync(
&self,
realm: &mut CurrentRealm<'_>,
mode: u32,
offset: u64,
size: Option<u64>,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn GetMappedRange(
&self,
cx: &mut JSContext,
offset: u64,
size: Option<u64>,
) -> Fallible<RootedTraceableBox<HeapArrayBuffer>>;
fn Unmap(&self, cx: &mut JSContext);
fn Destroy(&self, cx: &mut JSContext);
fn Label(&self) -> USVString;
fn SetLabel(&self, cx: &NoGC, value: USVString);
}Required Methods§
fn Size(&self) -> u64
fn Usage(&self) -> u32
fn MapState(&self) -> GPUBufferMapState
fn MapAsync( &self, realm: &mut CurrentRealm<'_>, mode: u32, offset: u64, size: Option<u64>, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn GetMappedRange( &self, cx: &mut JSContext, offset: u64, size: Option<u64>, ) -> Fallible<RootedTraceableBox<HeapArrayBuffer>>
fn Unmap(&self, cx: &mut JSContext)
fn Destroy(&self, cx: &mut JSContext)
fn Label(&self) -> USVString
fn SetLabel(&self, cx: &NoGC, value: USVString)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".