pub(crate) trait GPUBufferMethods<D>where
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 as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot;
fn GetMappedRange(
&self,
cx: &mut JSContext,
offset: u64,
size: Option<u64>,
) -> Result<RootedTraceableBox<TypedArray<ArrayBufferU8, Box<Heap<*mut JSObject>>>>, Error>;
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 as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot
fn GetMappedRange( &self, cx: &mut JSContext, offset: u64, size: Option<u64>, ) -> Result<RootedTraceableBox<TypedArray<ArrayBufferU8, Box<Heap<*mut JSObject>>>>, Error>
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".