Skip to main content

GPUBufferMethods

pub 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>, ) -> 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); }

Required Methods§

Source

fn Size(&self) -> u64

Source

fn Usage(&self) -> u32

Source

fn MapState(&self) -> GPUBufferMapState

Source

fn MapAsync( &self, realm: &mut CurrentRealm<'_>, mode: u32, offset: u64, size: Option<u64>, ) -> Rc<<D as DomTypes>::Promise>

Source

fn GetMappedRange( &self, cx: &mut JSContext, offset: u64, size: Option<u64>, ) -> Result<RootedTraceableBox<TypedArray<ArrayBufferU8, Box<Heap<*mut JSObject>>>>, Error>

Source

fn Unmap(&self, cx: &mut JSContext)

Source

fn Destroy(&self, cx: &mut JSContext)

Source

fn Label(&self) -> USVString

Source

fn SetLabel(&self, value: USVString)

Implementors§