Trait GPUBufferMethods
Source pub trait GPUBufferMethods<D>{
// 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>,
) -> Rc<<D as DomTypes>::Promise>;
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, value: USVString);
}