pub trait GPUQueueMethods<D: DomTypes> {
    // Required methods
    fn Submit(&self, buffers: Vec<Root<Dom<GPUCommandBuffer>>>);
    fn OnSubmittedWorkDone(&self, _can_gc: CanGc) -> Rc<Promise>;
    fn WriteBuffer(
        &self,
        buffer: &GPUBuffer,
        bufferOffset: u64,
        data: ArrayBufferViewOrArrayBuffer,
        dataOffset: u64,
        size: Option<u64>,
    ) -> Result<(), Error>;
    fn WriteTexture(
        &self,
        destination: &GPUImageCopyTexture,
        data: ArrayBufferViewOrArrayBuffer,
        dataLayout: &GPUImageDataLayout,
        size: RangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict,
    ) -> Result<(), Error>;
    fn Label(&self) -> USVString;
    fn SetLabel(&self, value: USVString);
}

Required Methods§

source

fn Submit(&self, buffers: Vec<Root<Dom<GPUCommandBuffer>>>)

source

fn OnSubmittedWorkDone(&self, _can_gc: CanGc) -> Rc<Promise>

source

fn WriteBuffer( &self, buffer: &GPUBuffer, bufferOffset: u64, data: ArrayBufferViewOrArrayBuffer, dataOffset: u64, size: Option<u64>, ) -> Result<(), Error>

source

fn WriteTexture( &self, destination: &GPUImageCopyTexture, data: ArrayBufferViewOrArrayBuffer, dataLayout: &GPUImageDataLayout, size: RangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict, ) -> Result<(), Error>

source

fn Label(&self) -> USVString

source

fn SetLabel(&self, value: USVString)

Implementors§