|
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `GraphicsPipelineBuilder` struct in crate `vulkano`."><meta name="keywords" content="rust, rustlang, rust-lang, GraphicsPipelineBuilder"><title>vulkano::pipeline::GraphicsPipelineBuilder - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../vulkano/index.html'><div class='logo-container'><img src='https://raw.githubusercontent.com/vulkano-rs/vulkano/master/logo.png' alt='logo'></div></a><p class='location'>Struct GraphicsPipelineBuilder</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.alpha_to_coverage_disabled">alpha_to_coverage_disabled</a><a href="#method.alpha_to_coverage_enabled">alpha_to_coverage_enabled</a><a href="#method.alpha_to_one_disabled">alpha_to_one_disabled</a><a href="#method.alpha_to_one_enabled">alpha_to_one_enabled</a><a href="#method.blend_alpha_blending">blend_alpha_blending</a><a href="#method.blend_collective">blend_collective</a><a href="#method.blend_constants">blend_constants</a><a href="#method.blend_constants_dynamic">blend_constants_dynamic</a><a href="#method.blend_individual">blend_individual</a><a href="#method.blend_logic_op">blend_logic_op</a><a href="#method.blend_logic_op_disabled">blend_logic_op_disabled</a><a href="#method.blend_pass_through">blend_pass_through</a><a href="#method.build">build</a><a href="#method.cull_mode_back">cull_mode_back</a><a href="#method.cull_mode_disabled">cull_mode_disabled</a><a href="#method.cull_mode_front">cull_mode_front</a><a href="#method.cull_mode_front_and_back">cull_mode_front_and_back</a><a href="#method.depth_clamp">depth_clamp</a><a href="#method.depth_stencil">depth_stencil</a><a href="#method.depth_stencil_disabled">depth_stencil_disabled</a><a href="#method.depth_stencil_simple_depth">depth_stencil_simple_depth</a><a href="#method.depth_write">depth_write</a><a href="#method.fragment_shader">fragment_shader</a><a href="#method.front_face_clockwise">front_face_clockwise</a><a href="#method.front_face_counter_clockwise">front_face_counter_clockwise</a><a href="#method.geometry_shader">geometry_shader</a><a href="#method.geometry_shader_disabled">geometry_shader_disabled</a><a href="#method.line_list">line_list</a><a href="#method.line_list_with_adjacency">line_list_with_adjacency</a><a href="#method.line_strip">line_strip</a><a href="#method.line_strip_with_adjacency">line_strip_with_adjacency</a><a href="#method.line_width">line_width</a><a href="#method.line_width_dynamic">line_width_dynamic</a><a href="#method.patch_list">patch_list</a><a href="#method.point_list">point_list</a><a href="#method.polygon_mode_fill">polygon_mode_fill</a><a href="#method.polygon_mode_line">polygon_mode_line</a><a href="#method.polygon_mode_point">polygon_mode_point</a><a href="#method.primitive_restart">primitive_restart</a><a href="#method.primitive_topology">primitive_topology</a><a href="#method.render_pass">render_pass</a><a href="#method.sample_shading_disabled">sample_shading_disabled</a><a href="#method.sample_shading_enabled">sample_shading_enabled</a><a href="#method.tessellation_shaders">tessellation_shaders</a><a href="#method.tessellation_shaders_disabled">tessellation_shaders_disabled</a><a href="#method.triangle_fan">triangle_fan</a><a href="#method.triangle_list">triangle_list</a><a href="#method.triangle_list_with_adjacency">triangle_list_with_adjacency</a><a href="#method.triangle_strip">triangle_strip</a><a href="#method.triangle_strip_with_adjacency">triangle_strip_with_adjacency</a><a href="#method.vertex_input">vertex_input</a><a href="#method.vertex_input_single_buffer">vertex_input_single_buffer</a><a href="#method.vertex_shader">vertex_shader</a><a href="#method.viewports">viewports</a><a href="#method.viewports_dynamic_scissors_fixed">viewports_dynamic_scissors_fixed</a><a href="#method.viewports_dynamic_scissors_irrelevant">viewports_dynamic_scissors_irrelevant</a><a href="#method.viewports_fixed_scissors_dynamic">viewports_fixed_scissors_dynamic</a><a href="#method.viewports_scissors">viewports_scissors</a><a href="#method.viewports_scissors_dynamic">viewports_scissors_dynamic</a><a href="#method.with_auto_layout">with_auto_layout</a><a href="#method.with_pipeline_layout">with_pipeline_layout</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Content">Content</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='../index.html'>vulkano</a>::<wbr><a href='index.html'>pipeline</a></p><script>window.sidebarCurrent = {name: 'GraphicsPipelineBuilder', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#62-78' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>vulkano</a>::<wbr><a href='index.html'>pipeline</a>::<wbr><a class="struct" href=''>GraphicsPipelineBuilder</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct GraphicsPipelineBuilder<Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> { /* fields omitted */ }</pre></div><div class='docblock'><p>Prototype for a <code>GraphicsPipeline</code>.</p>
|
|
|
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl<Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> <span class="where fmt-newline">where<br> Vdef: <a class="trait" href="../../vulkano/pipeline/vertex/trait.VertexDefinition.html" title="trait vulkano::pipeline::vertex::VertexDefinition">VertexDefinition</a><Vs::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.InputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::InputDefinition">InputDefinition</a>>,<br> Vs: <a class="trait" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html" title="trait vulkano::pipeline::shader::GraphicsEntryPointAbstract">GraphicsEntryPointAbstract</a>,<br> Fs: <a class="trait" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html" title="trait vulkano::pipeline::shader::GraphicsEntryPointAbstract">GraphicsEntryPointAbstract</a>,<br> Gs: <a class="trait" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html" title="trait vulkano::pipeline::shader::GraphicsEntryPointAbstract">GraphicsEntryPointAbstract</a>,<br> Tcs: <a class="trait" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html" title="trait vulkano::pipeline::shader::GraphicsEntryPointAbstract">GraphicsEntryPointAbstract</a>,<br> Tes: <a class="trait" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html" title="trait vulkano::pipeline::shader::GraphicsEntryPointAbstract">GraphicsEntryPointAbstract</a>,<br> Vss: <a class="trait" href="../../vulkano/pipeline/shader/trait.SpecializationConstants.html" title="trait vulkano::pipeline::shader::SpecializationConstants">SpecializationConstants</a>,<br> Tcss: <a class="trait" href="../../vulkano/pipeline/shader/trait.SpecializationConstants.html" title="trait vulkano::pipeline::shader::SpecializationConstants">SpecializationConstants</a>,<br> Tess: <a class="trait" href="../../vulkano/pipeline/shader/trait.SpecializationConstants.html" title="trait vulkano::pipeline::shader::SpecializationConstants">SpecializationConstants</a>,<br> Gss: <a class="trait" href="../../vulkano/pipeline/shader/trait.SpecializationConstants.html" title="trait vulkano::pipeline::shader::SpecializationConstants">SpecializationConstants</a>,<br> Fss: <a class="trait" href="../../vulkano/pipeline/shader/trait.SpecializationConstants.html" title="trait vulkano::pipeline::shader::SpecializationConstants">SpecializationConstants</a>,<br> Vs::<a class="type" href="../../vulkano/pipeline/shader/trait.EntryPointAbstract.html#associatedtype.PipelineLayout" title="type vulkano::pipeline::shader::EntryPointAbstract::PipelineLayout">PipelineLayout</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> Fs::<a class="type" href="../../vulkano/pipeline/shader/trait.EntryPointAbstract.html#associatedtype.PipelineLayout" title="type vulkano::pipeline::shader::EntryPointAbstract::PipelineLayout">PipelineLayout</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> Tcs::<a class="type" href="../../vulkano/pipeline/shader/trait.EntryPointAbstract.html#associatedtype.PipelineLayout" title="type vulkano::pipeline::shader::EntryPointAbstract::PipelineLayout">PipelineLayout</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> Tes::<a class="type" href="../../vulkano/pipeline/shader/trait.EntryPointAbstract.html#associatedtype.PipelineLayout" title="type vulkano::pipeline::shader::EntryPointAbstract::PipelineLayout">PipelineLayout</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> Gs::<a class="type" href="../../vulkano/pipeline/shader/trait.EntryPointAbstract.html#associatedtype.PipelineLayout" title="type vulkano::pipeline::shader::EntryPointAbstract::PipelineLayout">PipelineLayout</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> Tcs::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.InputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::InputDefinition">InputDefinition</a>: <a class="trait" href="../../vulkano/pipeline/shader/trait.ShaderInterfaceDefMatch.html" title="trait vulkano::pipeline::shader::ShaderInterfaceDefMatch">ShaderInterfaceDefMatch</a><Vs::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.OutputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::OutputDefinition">OutputDefinition</a>>,<br> Tes::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.InputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::InputDefinition">InputDefinition</a>: <a class="trait" href="../../vulkano/pipeline/shader/trait.ShaderInterfaceDefMatch.html" title="trait vulkano::pipeline::shader::ShaderInterfaceDefMatch">ShaderInterfaceDefMatch</a><Tcs::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.OutputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::OutputDefinition">OutputDefinition</a>>,<br> Gs::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.InputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::InputDefinition">InputDefinition</a>: <a class="trait" href="../../vulkano/pipeline/shader/trait.ShaderInterfaceDefMatch.html" title="trait vulkano::pipeline::shader::ShaderInterfaceDefMatch">ShaderInterfaceDefMatch</a><Tes::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.OutputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::OutputDefinition">OutputDefinition</a>> + <a class="trait" href="../../vulkano/pipeline/shader/trait.ShaderInterfaceDefMatch.html" title="trait vulkano::pipeline::shader::ShaderInterfaceDefMatch">ShaderInterfaceDefMatch</a><Vs::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.OutputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::OutputDefinition">OutputDefinition</a>>,<br> Fs::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.InputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::InputDefinition">InputDefinition</a>: <a class="trait" href="../../vulkano/pipeline/shader/trait.ShaderInterfaceDefMatch.html" title="trait vulkano::pipeline::shader::ShaderInterfaceDefMatch">ShaderInterfaceDefMatch</a><Gs::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.OutputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::OutputDefinition">OutputDefinition</a>> + <a class="trait" href="../../vulkano/pipeline/shader/trait.ShaderInterfaceDefMatch.html" title="trait vulkano::pipeline::shader::ShaderInterfaceDefMatch">ShaderInterfaceDefMatch</a><Tes::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.OutputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::OutputDefinition">OutputDefinition</a>> + <a class="trait" href="../../vulkano/pipeline/shader/trait.ShaderInterfaceDefMatch.html" title="trait vulkano::pipeline::shader::ShaderInterfaceDefMatch">ShaderInterfaceDefMatch</a><Vs::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.OutputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::OutputDefinition">OutputDefinition</a>>,<br> Rp: <a class="trait" href="../../vulkano/framebuffer/trait.RenderPassAbstract.html" title="trait vulkano::framebuffer::RenderPassAbstract">RenderPassAbstract</a> + <a class="trait" href="../../vulkano/framebuffer/trait.RenderPassSubpassInterface.html" title="trait vulkano::framebuffer::RenderPassSubpassInterface">RenderPassSubpassInterface</a><Fs::<a class="type" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html#associatedtype.OutputDefinition" title="type vulkano::pipeline::shader::GraphicsEntryPointAbstract::OutputDefinition">OutputDefinition</a>>, </span></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#129-1114' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.build' class="method"><code id='build.v'>pub fn <a href='#method.build' class='fnname'>build</a>(<br> self, <br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipeline.html" title="struct vulkano::pipeline::GraphicsPipeline">GraphicsPipeline</a><Vdef, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../vulkano/descriptor/pipeline_layout/trait.PipelineLayoutAbstract.html" title="trait vulkano::descriptor::pipeline_layout::PipelineLayoutAbstract">PipelineLayoutAbstract</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>>, Rp>, <a class="enum" href="../../vulkano/pipeline/enum.GraphicsPipelineCreationError.html" title="enum vulkano::pipeline::GraphicsPipelineCreationError">GraphicsPipelineCreationError</a>></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#158-162' title='goto source code'>[src]</a></h4><div class='docblock'><p>Builds the graphics pipeline, using an inferred a pipeline layout.</p>
|
|
|
</div><h4 id='method.with_auto_layout' class="method"><code id='with_auto_layout.v'>pub fn <a href='#method.with_auto_layout' class='fnname'>with_auto_layout</a>(<br> self, <br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> dynamic_buffers: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipeline.html" title="struct vulkano::pipeline::GraphicsPipeline">GraphicsPipeline</a><Vdef, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../vulkano/descriptor/pipeline_layout/trait.PipelineLayoutAbstract.html" title="trait vulkano::descriptor::pipeline_layout::PipelineLayoutAbstract">PipelineLayoutAbstract</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>>, Rp>, <a class="enum" href="../../vulkano/pipeline/enum.GraphicsPipelineCreationError.html" title="enum vulkano::pipeline::GraphicsPipelineCreationError">GraphicsPipelineCreationError</a>></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#168-301' title='goto source code'>[src]</a></h4><div class='docblock'><p>Builds the graphics pipeline, using an inferred pipeline layout with some dynamic buffers.</p>
|
|
|
<p>Configures the inferred layout for each descriptor <code>(set, binding)</code> in <code>dynamic_buffers</code> to accept dynamic
|
|
|
buffers.</p>
|
|
|
</div><h4 id='method.with_pipeline_layout' class="method"><code id='with_pipeline_layout.v'>pub fn <a href='#method.with_pipeline_layout' class='fnname'>with_pipeline_layout</a><Pl>(<br> self, <br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> pipeline_layout: Pl<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipeline.html" title="struct vulkano::pipeline::GraphicsPipeline">GraphicsPipeline</a><Vdef, Pl, Rp>, <a class="enum" href="../../vulkano/pipeline/enum.GraphicsPipelineCreationError.html" title="enum vulkano::pipeline::GraphicsPipelineCreationError">GraphicsPipelineCreationError</a>> <span class="where fmt-newline">where<br> Pl: <a class="trait" href="../../vulkano/descriptor/pipeline_layout/trait.PipelineLayoutAbstract.html" title="trait vulkano::descriptor::pipeline_layout::PipelineLayoutAbstract">PipelineLayoutAbstract</a>, </span></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#308-1111' title='goto source code'>[src]</a></h4><div class='docblock'><p>Builds the graphics pipeline.</p>
|
|
|
<p>Does the same as <code>build</code>, except that <code>build</code> automatically builds the pipeline layout
|
|
|
object corresponding to the union of your shaders while this function allows you to specify
|
|
|
the pipeline layout.</p>
|
|
|
</div></div><h3 id='impl-1' class='impl'><code class='in-band'>impl<Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp></code><a href='#impl-1' class='anchor'></a><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1116-1765' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.vertex_input' class="method"><code id='vertex_input.v'>pub fn <a href='#method.vertex_input' class='fnname'>vertex_input</a><T>(<br> self, <br> vertex_input: T<br>) -> <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><T, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1122-1140' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the vertex input.</p>
|
|
|
</div><h4 id='method.vertex_input_single_buffer' class="method"><code id='vertex_input_single_buffer.v'>pub fn <a href='#method.vertex_input_single_buffer' class='fnname'>vertex_input_single_buffer</a><V>(<br> self<br>) -> <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><<a class="struct" href="../../vulkano/pipeline/vertex/struct.SingleBufferDefinition.html" title="struct vulkano::pipeline::vertex::SingleBufferDefinition">SingleBufferDefinition</a><V>, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1147-1161' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the vertex input to a single vertex buffer.</p>
|
|
|
<p>You will most likely need to explicitly specify the template parameter to the type of a
|
|
|
vertex.</p>
|
|
|
</div><h4 id='method.vertex_shader' class="method"><code id='vertex_shader.v'>pub fn <a href='#method.vertex_shader' class='fnname'>vertex_shader</a><Vs2, Vss2>(<br> self, <br> shader: Vs2, <br> specialization_constants: Vss2<br>) -> <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs2, Vss2, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> <span class="where fmt-newline">where<br> Vs2: <a class="trait" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html" title="trait vulkano::pipeline::shader::GraphicsEntryPointAbstract">GraphicsEntryPointAbstract</a><SpecializationConstants = Vss2>,<br> Vss2: <a class="trait" href="../../vulkano/pipeline/shader/trait.SpecializationConstants.html" title="trait vulkano::pipeline::shader::SpecializationConstants">SpecializationConstants</a>, </span></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1166-1187' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the vertex shader to use.</p>
|
|
|
</div><h4 id='method.primitive_restart' class="method"><code id='primitive_restart.v'>pub fn <a href='#method.primitive_restart' class='fnname'>primitive_restart</a>(self, enabled: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1191-1199' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets whether primitive restart if enabled.</p>
|
|
|
</div><h4 id='method.primitive_topology' class="method"><code id='primitive_topology.v'>pub fn <a href='#method.primitive_topology' class='fnname'>primitive_topology</a>(self, topology: <a class="enum" href="../../vulkano/pipeline/input_assembly/enum.PrimitiveTopology.html" title="enum vulkano::pipeline::input_assembly::PrimitiveTopology">PrimitiveTopology</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1203-1207' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the topology of the primitives that are expected by the pipeline.</p>
|
|
|
</div><h4 id='method.point_list' class="method"><code id='point_list.v'>pub fn <a href='#method.point_list' class='fnname'>point_list</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1214-1216' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the topology of the primitives to a list of points.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is equivalent to
|
|
|
<code>self.primitive_topology(PrimitiveTopology::PointList)</code>.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.line_list' class="method"><code id='line_list.v'>pub fn <a href='#method.line_list' class='fnname'>line_list</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1223-1225' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the topology of the primitives to a list of lines.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is equivalent to
|
|
|
<code>self.primitive_topology(PrimitiveTopology::LineList)</code>.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.line_strip' class="method"><code id='line_strip.v'>pub fn <a href='#method.line_strip' class='fnname'>line_strip</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1232-1234' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the topology of the primitives to a line strip.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is equivalent to
|
|
|
<code>self.primitive_topology(PrimitiveTopology::LineStrip)</code>.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.triangle_list' class="method"><code id='triangle_list.v'>pub fn <a href='#method.triangle_list' class='fnname'>triangle_list</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1241-1243' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the topology of the primitives to a list of triangles. Note that this is the default.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is equivalent to
|
|
|
<code>self.primitive_topology(PrimitiveTopology::TriangleList)</code>.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.triangle_strip' class="method"><code id='triangle_strip.v'>pub fn <a href='#method.triangle_strip' class='fnname'>triangle_strip</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1250-1252' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the topology of the primitives to a triangle strip.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is equivalent to
|
|
|
<code>self.primitive_topology(PrimitiveTopology::TriangleStrip)</code>.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.triangle_fan' class="method"><code id='triangle_fan.v'>pub fn <a href='#method.triangle_fan' class='fnname'>triangle_fan</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1259-1261' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the topology of the primitives to a fan of triangles.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is equivalent to
|
|
|
<code>self.primitive_topology(PrimitiveTopology::TriangleFan)</code>.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.line_list_with_adjacency' class="method"><code id='line_list_with_adjacency.v'>pub fn <a href='#method.line_list_with_adjacency' class='fnname'>line_list_with_adjacency</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1268-1270' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the topology of the primitives to a list of lines with adjacency information.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is equivalent to
|
|
|
<code>self.primitive_topology(PrimitiveTopology::LineListWithAdjacency)</code>.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.line_strip_with_adjacency' class="method"><code id='line_strip_with_adjacency.v'>pub fn <a href='#method.line_strip_with_adjacency' class='fnname'>line_strip_with_adjacency</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1277-1279' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the topology of the primitives to a line strip with adjacency information.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is equivalent to
|
|
|
<code>self.primitive_topology(PrimitiveTopology::LineStripWithAdjacency)</code>.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.triangle_list_with_adjacency' class="method"><code id='triangle_list_with_adjacency.v'>pub fn <a href='#method.triangle_list_with_adjacency' class='fnname'>triangle_list_with_adjacency</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1286-1288' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the topology of the primitives to a list of triangles with adjacency information.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is equivalent to
|
|
|
<code>self.primitive_topology(PrimitiveTopology::TriangleListWithAdjacency)</code>.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.triangle_strip_with_adjacency' class="method"><code id='triangle_strip_with_adjacency.v'>pub fn <a href='#method.triangle_strip_with_adjacency' class='fnname'>triangle_strip_with_adjacency</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1295-1297' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the topology of the primitives to a triangle strip with adjacency information`</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is equivalent to
|
|
|
<code>self.primitive_topology(PrimitiveTopology::TriangleStripWithAdjacency)</code>.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.patch_list' class="method"><code id='patch_list.v'>pub fn <a href='#method.patch_list' class='fnname'>patch_list</a>(self, vertices_per_patch: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1305-1307' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the topology of the primitives to a list of patches. Can only be used and must be used
|
|
|
with a tessellation shader.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is equivalent to
|
|
|
<code>self.primitive_topology(PrimitiveTopology::PatchList { vertices_per_patch })</code>.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.tessellation_shaders' class="method"><code id='tessellation_shaders.v'>pub fn <a href='#method.tessellation_shaders' class='fnname'>tessellation_shaders</a><Tcs2, Tcss2, Tes2, Tess2>(<br> self, <br> tessellation_control_shader: Tcs2, <br> tessellation_control_shader_spec_constants: Tcss2, <br> tessellation_evaluation_shader: Tes2, <br> tessellation_evaluation_shader_spec_constants: Tess2<br>) -> <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs, Vss, Tcs2, Tcss2, Tes2, Tess2, Gs, Gss, Fs, Fss, Rp> <span class="where fmt-newline">where<br> Tcs2: <a class="trait" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html" title="trait vulkano::pipeline::shader::GraphicsEntryPointAbstract">GraphicsEntryPointAbstract</a><SpecializationConstants = Tcss2>,<br> Tes2: <a class="trait" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html" title="trait vulkano::pipeline::shader::GraphicsEntryPointAbstract">GraphicsEntryPointAbstract</a><SpecializationConstants = Tess2>,<br> Tcss2: <a class="trait" href="../../vulkano/pipeline/shader/trait.SpecializationConstants.html" title="trait vulkano::pipeline::shader::SpecializationConstants">SpecializationConstants</a>,<br> Tess2: <a class="trait" href="../../vulkano/pipeline/shader/trait.SpecializationConstants.html" title="trait vulkano::pipeline::shader::SpecializationConstants">SpecializationConstants</a>, </span></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1312-1344' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the tessellation shaders to use.</p>
|
|
|
</div><h4 id='method.tessellation_shaders_disabled' class="method"><code id='tessellation_shaders_disabled.v'>pub fn <a href='#method.tessellation_shaders_disabled' class='fnname'>tessellation_shaders_disabled</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1348-1351' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the tessellation shaders stage as disabled. This is the default.</p>
|
|
|
</div><h4 id='method.geometry_shader' class="method"><code id='geometry_shader.v'>pub fn <a href='#method.geometry_shader' class='fnname'>geometry_shader</a><Gs2, Gss2>(<br> self, <br> shader: Gs2, <br> specialization_constants: Gss2<br>) -> <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs2, Gss2, Fs, Fss, Rp> <span class="where fmt-newline">where<br> Gs2: <a class="trait" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html" title="trait vulkano::pipeline::shader::GraphicsEntryPointAbstract">GraphicsEntryPointAbstract</a><SpecializationConstants = Gss2>,<br> Gss2: <a class="trait" href="../../vulkano/pipeline/shader/trait.SpecializationConstants.html" title="trait vulkano::pipeline::shader::SpecializationConstants">SpecializationConstants</a>, </span></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1356-1377' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the geometry shader to use.</p>
|
|
|
</div><h4 id='method.geometry_shader_disabled' class="method"><code id='geometry_shader_disabled.v'>pub fn <a href='#method.geometry_shader_disabled' class='fnname'>geometry_shader_disabled</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1381-1384' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the geometry shader stage as disabled. This is the default.</p>
|
|
|
</div><h4 id='method.viewports' class="method"><code id='viewports.v'>pub fn <a href='#method.viewports' class='fnname'>viewports</a><I>(self, viewports: I) -> Self <span class="where fmt-newline">where<br> I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../../vulkano/pipeline/viewport/struct.Viewport.html" title="struct vulkano::pipeline::viewport::Viewport">Viewport</a>>, </span></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1389-1393' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the viewports to some value, and the scissor boxes to boxes that always cover the
|
|
|
whole viewport.</p>
|
|
|
</div><h4 id='method.viewports_scissors' class="method"><code id='viewports_scissors.v'>pub fn <a href='#method.viewports_scissors' class='fnname'>viewports_scissors</a><I>(self, viewports: I) -> Self <span class="where fmt-newline">where<br> I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../vulkano/pipeline/viewport/struct.Viewport.html" title="struct vulkano::pipeline::viewport::Viewport">Viewport</a>, <a class="struct" href="../../vulkano/pipeline/viewport/struct.Scissor.html" title="struct vulkano::pipeline::viewport::Scissor">Scissor</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>, </span></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1397-1402' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the characteristics of viewports and scissor boxes in advance.</p>
|
|
|
</div><h4 id='method.viewports_dynamic_scissors_fixed' class="method"><code id='viewports_dynamic_scissors_fixed.v'>pub fn <a href='#method.viewports_dynamic_scissors_fixed' class='fnname'>viewports_dynamic_scissors_fixed</a><I>(self, scissors: I) -> Self <span class="where fmt-newline">where<br> I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../../vulkano/pipeline/viewport/struct.Scissor.html" title="struct vulkano::pipeline::viewport::Scissor">Scissor</a>>, </span></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1407-1413' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the scissor boxes to some values, and viewports to dynamic. The viewports will
|
|
|
need to be set before drawing.</p>
|
|
|
</div><h4 id='method.viewports_dynamic_scissors_irrelevant' class="method"><code id='viewports_dynamic_scissors_irrelevant.v'>pub fn <a href='#method.viewports_dynamic_scissors_irrelevant' class='fnname'>viewports_dynamic_scissors_irrelevant</a>(self, num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1418-1423' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the viewports to dynamic, and the scissor boxes to boxes that always cover the whole
|
|
|
viewport. The viewports will need to be set before drawing.</p>
|
|
|
</div><h4 id='method.viewports_fixed_scissors_dynamic' class="method"><code id='viewports_fixed_scissors_dynamic.v'>pub fn <a href='#method.viewports_fixed_scissors_dynamic' class='fnname'>viewports_fixed_scissors_dynamic</a><I>(self, viewports: I) -> Self <span class="where fmt-newline">where<br> I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../../vulkano/pipeline/viewport/struct.Viewport.html" title="struct vulkano::pipeline::viewport::Viewport">Viewport</a>>, </span></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1428-1434' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the viewports to some values, and scissor boxes to dynamic. The scissor boxes will
|
|
|
need to be set before drawing.</p>
|
|
|
</div><h4 id='method.viewports_scissors_dynamic' class="method"><code id='viewports_scissors_dynamic.v'>pub fn <a href='#method.viewports_scissors_dynamic' class='fnname'>viewports_scissors_dynamic</a>(self, num: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1439-1442' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the viewports and scissor boxes to dynamic. They will both need to be set before
|
|
|
drawing.</p>
|
|
|
</div><h4 id='method.depth_clamp' class="method"><code id='depth_clamp.v'>pub fn <a href='#method.depth_clamp' class='fnname'>depth_clamp</a>(self, clamp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1448-1451' title='goto source code'>[src]</a></h4><div class='docblock'><p>If true, then the depth value of the vertices will be clamped to the range <code>[0.0 ; 1.0]</code>.
|
|
|
If false, fragments whose depth is outside of this range will be discarded before the
|
|
|
fragment shader even runs.</p>
|
|
|
</div><h4 id='method.front_face_counter_clockwise' class="method"><code id='front_face_counter_clockwise.v'>pub fn <a href='#method.front_face_counter_clockwise' class='fnname'>front_face_counter_clockwise</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1466-1469' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the front-facing faces to counter-clockwise faces. This is the default.</p>
|
|
|
<p>Triangles whose vertices are oriented counter-clockwise on the screen will be considered
|
|
|
as facing their front. Otherwise they will be considered as facing their back.</p>
|
|
|
</div><h4 id='method.front_face_clockwise' class="method"><code id='front_face_clockwise.v'>pub fn <a href='#method.front_face_clockwise' class='fnname'>front_face_clockwise</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1476-1479' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the front-facing faces to clockwise faces.</p>
|
|
|
<p>Triangles whose vertices are oriented clockwise on the screen will be considered
|
|
|
as facing their front. Otherwise they will be considered as facing their back.</p>
|
|
|
</div><h4 id='method.cull_mode_disabled' class="method"><code id='cull_mode_disabled.v'>pub fn <a href='#method.cull_mode_disabled' class='fnname'>cull_mode_disabled</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1483-1486' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets backface culling as disabled. This is the default.</p>
|
|
|
</div><h4 id='method.cull_mode_front' class="method"><code id='cull_mode_front.v'>pub fn <a href='#method.cull_mode_front' class='fnname'>cull_mode_front</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1491-1494' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets backface culling to front faces. The front faces (as chosen with the <code>front_face_*</code>
|
|
|
methods) will be discarded by the GPU when drawing.</p>
|
|
|
</div><h4 id='method.cull_mode_back' class="method"><code id='cull_mode_back.v'>pub fn <a href='#method.cull_mode_back' class='fnname'>cull_mode_back</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1499-1502' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets backface culling to back faces. Faces that are not facing the front (as chosen with
|
|
|
the <code>front_face_*</code> methods) will be discarded by the GPU when drawing.</p>
|
|
|
</div><h4 id='method.cull_mode_front_and_back' class="method"><code id='cull_mode_front_and_back.v'>pub fn <a href='#method.cull_mode_front_and_back' class='fnname'>cull_mode_front_and_back</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1509-1512' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets backface culling to both front and back faces. All the faces will be discarded.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This option exists for the sake of completeness. It has no known practical
|
|
|
usage.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.polygon_mode_fill' class="method"><code id='polygon_mode_fill.v'>pub fn <a href='#method.polygon_mode_fill' class='fnname'>polygon_mode_fill</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1516-1519' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the polygon mode to "fill". This is the default.</p>
|
|
|
</div><h4 id='method.polygon_mode_line' class="method"><code id='polygon_mode_line.v'>pub fn <a href='#method.polygon_mode_line' class='fnname'>polygon_mode_line</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1523-1526' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the polygon mode to "line". Triangles will each be turned into three lines.</p>
|
|
|
</div><h4 id='method.polygon_mode_point' class="method"><code id='polygon_mode_point.v'>pub fn <a href='#method.polygon_mode_point' class='fnname'>polygon_mode_point</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1530-1533' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the polygon mode to "point". Triangles and lines will each be turned into three points.</p>
|
|
|
</div><h4 id='method.line_width' class="method"><code id='line_width.v'>pub fn <a href='#method.line_width' class='fnname'>line_width</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1537-1540' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the width of the lines, if the GPU needs to draw lines. The default is <code>1.0</code>.</p>
|
|
|
</div><h4 id='method.line_width_dynamic' class="method"><code id='line_width_dynamic.v'>pub fn <a href='#method.line_width_dynamic' class='fnname'>line_width_dynamic</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1545-1548' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the width of the lines as dynamic, which means that you will need to set this value
|
|
|
when drawing.</p>
|
|
|
</div><h4 id='method.sample_shading_disabled' class="method"><code id='sample_shading_disabled.v'>pub fn <a href='#method.sample_shading_disabled' class='fnname'>sample_shading_disabled</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1558-1561' title='goto source code'>[src]</a></h4><div class='docblock'><p>Disables sample shading. The fragment shader will only be run once per fragment (ie. per
|
|
|
pixel) and not once by sample. The output will then be copied in all of the covered
|
|
|
samples.</p>
|
|
|
<p>Sample shading is disabled by default.</p>
|
|
|
</div><h4 id='method.sample_shading_enabled' class="method"><code id='sample_shading_enabled.v'>pub fn <a href='#method.sample_shading_enabled' class='fnname'>sample_shading_enabled</a>(self, min_fract: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1580-1585' title='goto source code'>[src]</a></h4><div class='docblock'><p>Enables sample shading. The fragment shader will be run once per sample at the borders of
|
|
|
the object you're drawing.</p>
|
|
|
<p>Enabling sampling shading requires the <code>sample_rate_shading</code> feature to be enabled on the
|
|
|
device.</p>
|
|
|
<p>The <code>min_fract</code> parameter is the minimum fraction of samples shading. For example if its
|
|
|
value is 0.5, then the fragment shader will run for at least half of the samples. The other
|
|
|
half of the samples will get their values determined automatically.</p>
|
|
|
<p>Sample shading is disabled by default.</p>
|
|
|
<h1 id="panic" class="section-header"><a href="#panic">Panic</a></h1>
|
|
|
<ul>
|
|
|
<li>Panics if <code>min_fract</code> is not between 0.0 and 1.0.</li>
|
|
|
</ul>
|
|
|
</div><h4 id='method.alpha_to_coverage_disabled' class="method"><code id='alpha_to_coverage_disabled.v'>pub fn <a href='#method.alpha_to_coverage_disabled' class='fnname'>alpha_to_coverage_disabled</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1588-1591' title='goto source code'>[src]</a></h4><h4 id='method.alpha_to_coverage_enabled' class="method"><code id='alpha_to_coverage_enabled.v'>pub fn <a href='#method.alpha_to_coverage_enabled' class='fnname'>alpha_to_coverage_enabled</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1594-1597' title='goto source code'>[src]</a></h4><h4 id='method.alpha_to_one_disabled' class="method"><code id='alpha_to_one_disabled.v'>pub fn <a href='#method.alpha_to_one_disabled' class='fnname'>alpha_to_one_disabled</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1603-1606' title='goto source code'>[src]</a></h4><div class='docblock'><p>Disables alpha-to-one.</p>
|
|
|
<p>Alpha-to-one is disabled by default.</p>
|
|
|
</div><h4 id='method.alpha_to_one_enabled' class="method"><code id='alpha_to_one_enabled.v'>pub fn <a href='#method.alpha_to_one_enabled' class='fnname'>alpha_to_one_enabled</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1615-1618' title='goto source code'>[src]</a></h4><div class='docblock'><p>Enables alpha-to-one. The alpha component of the first color output of the fragment shader
|
|
|
will be replaced by the value <code>1.0</code>.</p>
|
|
|
<p>Enabling alpha-to-one requires the <code>alpha_to_one</code> feature to be enabled on the device.</p>
|
|
|
<p>Alpha-to-one is disabled by default.</p>
|
|
|
</div><h4 id='method.fragment_shader' class="method"><code id='fragment_shader.v'>pub fn <a href='#method.fragment_shader' class='fnname'>fragment_shader</a><Fs2, Fss2>(<br> self, <br> shader: Fs2, <br> specialization_constants: Fss2<br>) -> <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs2, Fss2, Rp> <span class="where fmt-newline">where<br> Fs2: <a class="trait" href="../../vulkano/pipeline/shader/trait.GraphicsEntryPointAbstract.html" title="trait vulkano::pipeline::shader::GraphicsEntryPointAbstract">GraphicsEntryPointAbstract</a><SpecializationConstants = Fss2>,<br> Fss2: <a class="trait" href="../../vulkano/pipeline/shader/trait.SpecializationConstants.html" title="trait vulkano::pipeline::shader::SpecializationConstants">SpecializationConstants</a>, </span></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1627-1648' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the fragment shader to use.</p>
|
|
|
<p>The fragment shader is run once for each pixel that is covered by each primitive.</p>
|
|
|
</div><h4 id='method.depth_stencil' class="method"><code id='depth_stencil.v'>pub fn <a href='#method.depth_stencil' class='fnname'>depth_stencil</a>(self, depth_stencil: <a class="struct" href="../../vulkano/pipeline/depth_stencil/struct.DepthStencil.html" title="struct vulkano::pipeline::depth_stencil::DepthStencil">DepthStencil</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1652-1655' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the depth/stencil configuration. This function may be removed in the future.</p>
|
|
|
</div><h4 id='method.depth_stencil_disabled' class="method"><code id='depth_stencil_disabled.v'>pub fn <a href='#method.depth_stencil_disabled' class='fnname'>depth_stencil_disabled</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1662-1665' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the depth/stencil tests as disabled.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is a shortcut for all the other <code>depth_*</code> and <code>depth_stencil_*</code> methods
|
|
|
of the builder.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.depth_stencil_simple_depth' class="method"><code id='depth_stencil_simple_depth.v'>pub fn <a href='#method.depth_stencil_simple_depth' class='fnname'>depth_stencil_simple_depth</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1672-1675' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the depth/stencil tests as a simple depth test and no stencil test.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This is a shortcut for setting the depth test to <code>Less</code>, the depth write Into
|
|
|
<code> true</code> and disable the stencil test.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.depth_write' class="method"><code id='depth_write.v'>pub fn <a href='#method.depth_write' class='fnname'>depth_write</a>(self, write: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1679-1682' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets whether the depth buffer will be written.</p>
|
|
|
</div><h4 id='method.blend_collective' class="method"><code id='blend_collective.v'>pub fn <a href='#method.blend_collective' class='fnname'>blend_collective</a>(self, blend: <a class="struct" href="../../vulkano/pipeline/blend/struct.AttachmentBlend.html" title="struct vulkano::pipeline::blend::AttachmentBlend">AttachmentBlend</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1688-1691' title='goto source code'>[src]</a></h4><h4 id='method.blend_individual' class="method"><code id='blend_individual.v'>pub fn <a href='#method.blend_individual' class='fnname'>blend_individual</a><I>(self, blend: I) -> Self <span class="where fmt-newline">where<br> I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="../../vulkano/pipeline/blend/struct.AttachmentBlend.html" title="struct vulkano::pipeline::blend::AttachmentBlend">AttachmentBlend</a>>, </span></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1694-1699' title='goto source code'>[src]</a></h4><h4 id='method.blend_pass_through' class="method"><code id='blend_pass_through.v'>pub fn <a href='#method.blend_pass_through' class='fnname'>blend_pass_through</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1704-1706' title='goto source code'>[src]</a></h4><div class='docblock'><p>Each fragment shader output will have its value directly written to the framebuffer
|
|
|
attachment. This is the default.</p>
|
|
|
</div><h4 id='method.blend_alpha_blending' class="method"><code id='blend_alpha_blending.v'>pub fn <a href='#method.blend_alpha_blending' class='fnname'>blend_alpha_blending</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1709-1711' title='goto source code'>[src]</a></h4><h4 id='method.blend_logic_op' class="method"><code id='blend_logic_op.v'>pub fn <a href='#method.blend_logic_op' class='fnname'>blend_logic_op</a>(self, logic_op: <a class="enum" href="../../vulkano/pipeline/blend/enum.LogicOp.html" title="enum vulkano::pipeline::blend::LogicOp">LogicOp</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1714-1717' title='goto source code'>[src]</a></h4><h4 id='method.blend_logic_op_disabled' class="method"><code id='blend_logic_op_disabled.v'>pub fn <a href='#method.blend_logic_op_disabled' class='fnname'>blend_logic_op_disabled</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1721-1724' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the logic operation as disabled. This is the default.</p>
|
|
|
</div><h4 id='method.blend_constants' class="method"><code id='blend_constants.v'>pub fn <a href='#method.blend_constants' class='fnname'>blend_constants</a>(self, constants: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a>) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1730-1733' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the blend constant. The default is <code>[0.0, 0.0, 0.0, 0.0]</code>.</p>
|
|
|
<p>The blend constant is used for some blending calculations. It is irrelevant otherwise.</p>
|
|
|
</div><h4 id='method.blend_constants_dynamic' class="method"><code id='blend_constants_dynamic.v'>pub fn <a href='#method.blend_constants_dynamic' class='fnname'>blend_constants_dynamic</a>(self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1739-1742' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the blend constant value as dynamic. Its value will need to be set before drawing.</p>
|
|
|
<p>The blend constant is used for some blending calculations. It is irrelevant otherwise.</p>
|
|
|
</div><h4 id='method.render_pass' class="method"><code id='render_pass.v'>pub fn <a href='#method.render_pass' class='fnname'>render_pass</a><Rp2>(<br> self, <br> subpass: <a class="struct" href="../../vulkano/framebuffer/struct.Subpass.html" title="struct vulkano::framebuffer::Subpass">Subpass</a><Rp2><br>) -> <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp2></code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1746-1764' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the render pass subpass to use.</p>
|
|
|
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-Clone' class='impl'><code class='in-band'>impl<Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> <span class="where fmt-newline">where<br> Vdef: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> Vs: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> Vss: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> Tcs: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> Tcss: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> Tes: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> Tess: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> Gs: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> Gss: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> Fs: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> Fss: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> Rp: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1767-1809' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> Self</code><a class='srclink' href='../../src/vulkano/pipeline/graphics_pipeline/builder.rs.html#1782-1808' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
|
|
</div><h4 id='method.clone_from' class="method hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
|
|
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-Send' class='impl'><code class='in-band'>impl<Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl<Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> <span class="where fmt-newline">where<br> Fs: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> Fss: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> Gs: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> Gss: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> Rp: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> Tcs: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> Tcss: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> Tes: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> Tess: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> Vdef: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> Vs: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> Vss: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>, </span></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl<Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl<Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> <span class="where fmt-newline">where<br> Fs: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,<br> Fss: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,<br> Gs: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,<br> Gss: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,<br> Rp: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,<br> Tcs: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,<br> Tcss: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,<br> Tes: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,<br> Tess: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,<br> Vdef: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,<br> Vs: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,<br> Vss: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>, </span></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl<Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../vulkano/pipeline/struct.GraphicsPipelineBuilder.html" title="struct vulkano::pipeline::GraphicsPipelineBuilder">GraphicsPipelineBuilder</a><Vdef, Vs, Vss, Tcs, Tcss, Tes, Tess, Gs, Gss, Fs, Fss, Rp> <span class="where fmt-newline">where<br> Fs: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,<br> Fss: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,<br> Gs: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,<br> Gss: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,<br> Rp: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,<br> Tcs: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,<br> Tcss: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,<br> Tes: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,<br> Tess: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,<br> Vdef: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,<br> Vs: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,<br> Vss: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>, </span></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Content' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../../vulkano/memory/trait.Content.html" title="trait vulkano::memory::Content">Content</a> for T</code><a href='#impl-Content' class='anchor'></a><a class='srclink' href='../../src/vulkano/memory/mod.rs.html#171-190' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.ref_from_ptr' class="method hidden"><code id='ref_from_ptr.v'>fn <a href='../../vulkano/memory/trait.Content.html#tymethod.ref_from_ptr' class='fnname'>ref_from_ptr</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="https://doc.rust-lang.org/nightly/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut T</a>></code><a class='srclink' href='../../src/vulkano/memory/mod.rs.html#173-179' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Builds a pointer to this type from a raw pointer.</p>
|
|
|
</div><h4 id='method.is_size_suitable' class="method hidden"><code id='is_size_suitable.v'>fn <a href='../../vulkano/memory/trait.Content.html#tymethod.is_size_suitable' class='fnname'>is_size_suitable</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/vulkano/memory/mod.rs.html#182-184' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns true if the size is suitable to store a type like this.</p>
|
|
|
</div><h4 id='method.indiv_size' class="method hidden"><code id='indiv_size.v'>fn <a href='../../vulkano/memory/trait.Content.html#tymethod.indiv_size' class='fnname'>indiv_size</a>() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class='srclink' href='../../src/vulkano/memory/mod.rs.html#187-189' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the size of an individual element.</p>
|
|
|
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#81-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
|
|
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
|
|
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
|
|
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#544-549' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#546-548' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#553-555' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#554' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#572-578' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
|
|
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#575-577' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#560-567' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
|
|
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#564-566' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
|
|
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../";window.currentCrate = "vulkano";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html> |