Trait kas_wgpu::draw::CustomPipeBuilder[][src]

pub trait CustomPipeBuilder {
    type Pipe: CustomPipe;
    fn build(
        &mut self,
        device: &Device,
        bgl_common: &BindGroupLayout,
        tex_format: TextureFormat
    ) -> Self::Pipe; fn device_descriptor() -> DeviceDescriptor<'static> { ... } }
Expand description

Builder for a CustomPipe

Associated Types

Required methods

Build a pipe

A “common” bind group with layout bgl_common is available, supplying window sizing and theme lighting information (refer to existing pipes and shaders for usage). Usage is optional.

The given texture format should be used to construct a compatible wgpu::RenderPipeline.

Provided methods

Request a device supporting these features and limits

See wgpu::Adapter::request_device and wgpu::DeviceDescriptor doc.

Implementations on Foreign Types

A dummy implementation (does nothing)

Implementors