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

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<Promise>

source

fn GetMappedRange( &self, cx: SafeJSContext, offset: u64, size: Option<u64>, ) -> Result<ArrayBuffer, Error>

source

fn Unmap(&self)

source

fn Destroy(&self)

source

fn Label(&self) -> USVString

source

fn SetLabel(&self, value: USVString)

Implementors§