Trait kas_wgpu::draw::CustomPipeBuilder
source · [−]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
Required Associated Types
source
type Pipe: CustomPipe
Required Methods
sourcefn build(
&mut self,
device: &Device,
bgl_common: &BindGroupLayout,
tex_format: TextureFormat
) -> Self::Pipe
fn build(
&mut self,
device: &Device,
bgl_common: &BindGroupLayout,
tex_format: TextureFormat
) -> Self::Pipe
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
sourcefn device_descriptor() -> DeviceDescriptor<'static>
fn device_descriptor() -> DeviceDescriptor<'static>
Request a device supporting these features and limits
See wgpu::Adapter::request_device
and wgpu::DeviceDescriptor
doc.
Implementations on Foreign Types
sourceimpl CustomPipeBuilder for ()
impl CustomPipeBuilder for ()
A dummy implementation (does nothing)