pub struct RendererCreateInfo {
pub queue_family: u32,
pub queue: Queue,
pub render_pass: RenderPass,
pub subpass: u32,
pub image_count: u32,
pub msaa_samples: Option<SampleCountFlags>,
pub pipeline_cache: PipelineCache,
pub surface_color_fmt: SurfaceColorFormat,
pub descriptor_pool_size: Option<u32>,
}Fields§
§queue_family: u32The queue family of the device from which RendererCreateInfo::queue
was allocated from
queue: QueueA queue on the passed n device with GRAPHICS capabilities.
render_pass: RenderPassA render pass the created pipeline must be compatible with, only used upon initialisation
subpass: u32The subpass on the aforementioned RendererCreateInfo::render_pass
image_count: u32The number of frames in flight
msaa_samples: Option<SampleCountFlags>Mutli sampling configuration for texture sampling
pipeline_cache: PipelineCacheAn optional pipeline cache
surface_color_fmt: SurfaceColorFormatWhether the outputting surface is linear or srgb logarithmic, generally linear is desired and as such is the default
descriptor_pool_size: Option<u32>The size of the descriptor pool managed by this renderer. Must be greater
than MIN_DESCRIPTOR_POOL_SIZE, any additional increment allows use
of another custom texture. If you wanted to render 3 custom textures
you would set this to MIN_DESCRIPTOR_POOL_SIZE + 3 and add your
textures with Renderer::add_texture
Implementations§
Source§impl RendererCreateInfo
impl RendererCreateInfo
Sourcepub fn queue_family(self, queue_family: u32) -> Self
pub fn queue_family(self, queue_family: u32) -> Self
Sourcepub fn render_pass(self, render_pass: RenderPass) -> Self
pub fn render_pass(self, render_pass: RenderPass) -> Self
Sourcepub fn image_count(self, image_count: u32) -> Self
pub fn image_count(self, image_count: u32) -> Self
Sourcepub fn msaa_samples(self, msaa_samples: Option<SampleCountFlags>) -> Self
pub fn msaa_samples(self, msaa_samples: Option<SampleCountFlags>) -> Self
Sourcepub fn pipeline_cache(self, pipeline_cache: PipelineCache) -> Self
pub fn pipeline_cache(self, pipeline_cache: PipelineCache) -> Self
Sourcepub fn surface_color_fmt(self, surface_color_fmt: SurfaceColorFormat) -> Self
pub fn surface_color_fmt(self, surface_color_fmt: SurfaceColorFormat) -> Self
Sourcepub fn descriptor_pool_size(self, descriptor_pool_size: Option<u32>) -> Self
pub fn descriptor_pool_size(self, descriptor_pool_size: Option<u32>) -> Self
Trait Implementations§
Source§impl Clone for RendererCreateInfo
impl Clone for RendererCreateInfo
Source§fn clone(&self) -> RendererCreateInfo
fn clone(&self) -> RendererCreateInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more