script::dom::bindings::codegen::GenericBindings::WebGPUBinding

Trait GPUBufferMethods

Source
pub trait GPUBufferMethods<D>
where 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<<D as DomTypes>::Promise>; fn GetMappedRange( &self, cx: JSContext, offset: u64, size: Option<u64>, _can_gc: CanGc, ) -> Result<TypedArray<ArrayBufferU8, *mut JSObject>, Error>; fn Unmap(&self); fn Destroy(&self); 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, mode: u32, offset: u64, size: Option<u64>, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<<D as DomTypes>::Promise>

Source

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

Source

fn Unmap(&self)

Source

fn Destroy(&self)

Source

fn Label(&self) -> USVString

Source

fn SetLabel(&self, value: USVString)

Implementors§