Trait script::dom::bindings::codegen::Bindings::WebGPUBinding::GPUBuffer_Binding::GPUBufferMethods
source · pub trait GPUBufferMethods<D: DomTypes> {
// Required methods
fn Size(&self) -> u64;
fn Usage(&self) -> u32;
fn MapState(&self) -> GPUBufferMapState;
fn MapAsync(
&self,
mode: u32,
offset: u64,
size: Option<u64>,
_comp: InRealm<'_>,
_can_gc: CanGc,
) -> Rc<Promise>;
fn GetMappedRange(
&self,
cx: SafeJSContext,
offset: u64,
size: Option<u64>,
) -> Result<ArrayBuffer, Error>;
fn Unmap(&self);
fn Destroy(&self);
fn Label(&self) -> USVString;
fn SetLabel(&self, value: USVString);
}