pub trait GPURenderBundleEncoderMethods {
    // Required methods
    fn Finish(
        &self,
        descriptor: &GPURenderBundleDescriptor,
    ) -> Root<Dom<GPURenderBundle>>;
    fn Label(&self) -> USVString;
    fn SetLabel(&self, value: USVString);
    fn SetBindGroup(
        &self,
        index: u32,
        bindGroup: &GPUBindGroup,
        dynamicOffsets: Vec<u32>,
    );
    fn SetPipeline(&self, pipeline: &GPURenderPipeline);
    fn SetIndexBuffer(
        &self,
        buffer: &GPUBuffer,
        indexFormat: GPUIndexFormat,
        offset: u64,
        size: u64,
    );
    fn SetVertexBuffer(
        &self,
        slot: u32,
        buffer: &GPUBuffer,
        offset: u64,
        size: u64,
    );
    fn Draw(
        &self,
        vertexCount: u32,
        instanceCount: u32,
        firstVertex: u32,
        firstInstance: u32,
    );
    fn DrawIndexed(
        &self,
        indexCount: u32,
        instanceCount: u32,
        firstIndex: u32,
        baseVertex: i32,
        firstInstance: u32,
    );
    fn DrawIndirect(&self, indirectBuffer: &GPUBuffer, indirectOffset: u64);
    fn DrawIndexedIndirect(
        &self,
        indirectBuffer: &GPUBuffer,
        indirectOffset: u64,
    );
}

Required Methods§

source

fn Finish( &self, descriptor: &GPURenderBundleDescriptor, ) -> Root<Dom<GPURenderBundle>>

source

fn Label(&self) -> USVString

source

fn SetLabel(&self, value: USVString)

source

fn SetBindGroup( &self, index: u32, bindGroup: &GPUBindGroup, dynamicOffsets: Vec<u32>, )

source

fn SetPipeline(&self, pipeline: &GPURenderPipeline)

source

fn SetIndexBuffer( &self, buffer: &GPUBuffer, indexFormat: GPUIndexFormat, offset: u64, size: u64, )

source

fn SetVertexBuffer(&self, slot: u32, buffer: &GPUBuffer, offset: u64, size: u64)

source

fn Draw( &self, vertexCount: u32, instanceCount: u32, firstVertex: u32, firstInstance: u32, )

source

fn DrawIndexed( &self, indexCount: u32, instanceCount: u32, firstIndex: u32, baseVertex: i32, firstInstance: u32, )

source

fn DrawIndirect(&self, indirectBuffer: &GPUBuffer, indirectOffset: u64)

source

fn DrawIndexedIndirect(&self, indirectBuffer: &GPUBuffer, indirectOffset: u64)

Implementors§