You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
82 KiB
92 lines
82 KiB
5 years ago
|
<!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 `SyncCommandBufferBuilder` struct in crate `vulkano`."><meta name="keywords" content="rust, rustlang, rust-lang, SyncCommandBufferBuilder"><title>vulkano::command_buffer::synced::SyncCommandBufferBuilder - 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 SyncCommandBufferBuilder</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.begin_render_pass">begin_render_pass</a><a href="#method.bind_descriptor_sets">bind_descriptor_sets</a><a href="#method.bind_index_buffer">bind_index_buffer</a><a href="#method.bind_pipeline_compute">bind_pipeline_compute</a><a href="#method.bind_pipeline_graphics">bind_pipeline_graphics</a><a href="#method.bind_vertex_buffers">bind_vertex_buffers</a><a href="#method.blit_image">blit_image</a><a href="#method.build">build</a><a href="#method.clear_color_image">clear_color_image</a><a href="#method.copy_buffer">copy_buffer</a><a href="#method.copy_buffer_to_image">copy_buffer_to_image</a><a href="#method.copy_image">copy_image</a><a href="#method.copy_image_to_buffer">copy_image_to_buffer</a><a href="#method.dispatch">dispatch</a><a href="#method.dispatch_indirect">dispatch_indirect</a><a href="#method.draw">draw</a><a href="#method.draw_indexed">draw_indexed</a><a href="#method.draw_indexed_indirect">draw_indexed_indirect</a><a href="#method.draw_indirect">draw_indirect</a><a href="#method.end_render_pass">end_render_pass</a><a href="#method.execute_commands">execute_commands</a><a href="#method.fill_buffer">fill_buffer</a><a href="#method.from_unsafe_cmd">from_unsafe_cmd</a><a href="#method.new">new</a><a href="#method.next_subpass">next_subpass</a><a href="#method.push_constants">push_constants</a><a href="#method.reset_event">reset_event</a><a href="#method.set_blend_constants">set_blend_constants</a><a href="#method.set_depth_bias">set_depth_bias</a><a href="#method.set_depth_bounds">set_depth_bounds</a><a href="#method.set_event">set_event</a><a href="#method.set_line_width">set_line_width</a><a href="#method.set_scissor">set_scissor</a><a href="#method.set_stencil_compare_mask">set_stencil_compare_mask</a><a href="#method.set_stencil_reference">set_stencil_reference</a><a href="#method.set_stencil_write_mask">set_stencil_write_mask</a><a href="#method.set_viewport">set_viewport</a><a href="#method.update_buffer">update_buffer</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-DeviceOwned">DeviceOwned</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
|
||
|
<p>Each method of the <code>UnsafeCommandBufferBuilder</code> has an equivalent in this wrapper, except
|
||
|
for <code>pipeline_layout</code> which is automatically handled. This wrapper automatically builds
|
||
|
pipeline barriers, keeps used resources alive and implements the <code>CommandBuffer</code> trait.</p>
|
||
|
<p>Since the implementation needs to cache commands in a <code>Vec</code>, most methods have additional
|
||
|
<code>Send + Sync + 'static</code> trait requirements on their generics.</p>
|
||
|
<p>If this builder finds out that a command isn't valid because of synchronization reasons (eg.
|
||
|
trying to copy from a buffer to an image which share the same memory), then an error is
|
||
|
returned.
|
||
|
Note that all methods are still unsafe, because this builder doesn't check the validity of
|
||
|
the commands except for synchronization purposes. The builder may panic if you pass invalid
|
||
|
commands.</p>
|
||
|
<p>The <code>P</code> generic is the same as <code>UnsafeCommandBufferBuilder</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<P> <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a><P></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/vulkano/command_buffer/synced/base.rs.html#369-785' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub unsafe fn <a href='#method.new' class='fnname'>new</a><Pool, R, F, A>(<br> pool: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Pool, <br> kind: <a class="enum" href="../../../vulkano/command_buffer/sys/enum.Kind.html" title="enum vulkano::command_buffer::sys::Kind">Kind</a><R, F>, <br> flags: <a class="enum" href="../../../vulkano/command_buffer/sys/enum.Flags.html" title="enum vulkano::command_buffer::sys::Flags">Flags</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/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a><P>, <a class="enum" href="../../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>> <span class="where fmt-newline">where<br> Pool: <a class="trait" href="../../../vulkano/command_buffer/pool/trait.CommandPool.html" title="trait vulkano::command_buffer::pool::CommandPool">CommandPool</a><Builder = P, Alloc = A>,<br> P: <a class="trait" href="../../../vulkano/command_buffer/pool/trait.CommandPoolBuilderAlloc.html" title="trait vulkano::command_buffer::pool::CommandPoolBuilderAlloc">CommandPoolBuilderAlloc</a><Alloc = A>,<br> A: <a class="trait" href="../../../vulkano/command_buffer/pool/trait.CommandPoolAlloc.html" title="trait vulkano::command_buffer::pool::CommandPoolAlloc">CommandPoolAlloc</a>,<br> R: <a class="trait" href="../../../vulkano/framebuffer/trait.RenderPassAbstract.html" title="trait vulkano::framebuffer::RenderPassAbstract">RenderPassAbstract</a>,<br> F: <a class="trait" href="../../../vulkano/framebuffer/trait.FramebufferAbstract.html" title="trait vulkano::framebuffer::FramebufferAbstract">FramebufferAbstract</a>, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/base.rs.html#376-391' title='goto source code'>[src]</a></h4><div class='docblock'><p>Builds a new <code>SyncCommandBufferBuilder</code>. The parameters are the same as the
|
||
|
<code>UnsafeCommandBufferBuilder::new</code> function.</p>
|
||
|
<h1 id="safety" class="section-header"><a href="#safety">Safety</a></h1>
|
||
|
<p>See <code>UnsafeCommandBufferBuilder::new()</code> and <code>SyncCommandBufferBuilder</code>.</p>
|
||
|
</div><h4 id='method.from_unsafe_cmd' class="method"><code id='from_unsafe_cmd.v'>pub unsafe fn <a href='#method.from_unsafe_cmd' class='fnname'>from_unsafe_cmd</a>(<br> cmd: <a class="struct" href="../../../vulkano/command_buffer/sys/struct.UnsafeCommandBufferBuilder.html" title="struct vulkano::command_buffer::sys::UnsafeCommandBufferBuilder">UnsafeCommandBufferBuilder</a><P>, <br> is_secondary: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> inside_render_pass: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a><P></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/base.rs.html#403-419' title='goto source code'>[src]</a></h4><div class='docblock'><p>Builds a <code>SyncCommandBufferBuilder</code> from an existing <code>UnsafeCommandBufferBuilder</code>.</p>
|
||
|
<h1 id="safety-1" class="section-header"><a href="#safety-1">Safety</a></h1>
|
||
|
<p>See <code>UnsafeCommandBufferBuilder::new()</code> and <code>SyncCommandBufferBuilder</code>.</p>
|
||
|
<p>In addition to this, the <code>UnsafeCommandBufferBuilder</code> should be empty. If it isn't, then
|
||
|
you must take into account the fact that the <code>SyncCommandBufferBuilder</code> won't be aware of
|
||
|
any existing resource usage.</p>
|
||
|
</div><h4 id='method.build' class="method"><code id='build.v'>pub fn <a href='#method.build' class='fnname'>build</a>(self) -> <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/command_buffer/synced/struct.SyncCommandBuffer.html" title="struct vulkano::command_buffer::synced::SyncCommandBuffer">SyncCommandBuffer</a><P::<a class="type" href="../../../vulkano/command_buffer/pool/trait.CommandPoolBuilderAlloc.html#associatedtype.Alloc" title="type vulkano::command_buffer::pool::CommandPoolBuilderAlloc::Alloc">Alloc</a>>, <a class="enum" href="../../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>> <span class="where fmt-newline">where<br> P: <a class="trait" href="../../../vulkano/command_buffer/pool/trait.CommandPoolBuilderAlloc.html" title="trait vulkano::command_buffer::pool::CommandPoolBuilderAlloc">CommandPoolBuilderAlloc</a>, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/base.rs.html#704-784' title='goto source code'>[src]</a></h4><div class='docblock'><p>Builds the command buffer and turns it into a <code>SyncCommandBuffer</code>.</p>
|
||
|
</div></div><h3 id='impl-1' class='impl'><code class='in-band'>impl<P> <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a><P></code><a href='#impl-1' class='anchor'></a><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#54-1912' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.begin_render_pass' class="method"><code id='begin_render_pass.v'>pub unsafe fn <a href='#method.begin_render_pass' class='fnname'>begin_render_pass</a><F, I>(<br> &mut self, <br> framebuffer: F, <br> subpass_contents: <a class="enum" href="../../../vulkano/framebuffer/enum.SubpassContents.html" title="enum vulkano::framebuffer::SubpassContents">SubpassContents</a>, <br> clear_values: I<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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../vulkano/command_buffer/synced/enum.SyncCommandBufferBuilderError.html" title="enum vulkano::command_buffer::synced::SyncCommandBufferBuilderError">SyncCommandBufferBuilderError</a>> <span class="where fmt-newline">where<br> F: <a class="trait" href="../../../vulkano/framebuffer/trait.FramebufferAbstract.html" title="trait vulkano::framebuffer::FramebufferAbstract">FramebufferAbstract</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> + 'static,<br> I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="../../../vulkano/format/enum.ClearValue.html" title="enum vulkano::format::ClearValue">ClearValue</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#60-142' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkBeginRenderPass</code> on the builder.</p>
|
||
|
</div><h4 id='method.bind_index_buffer' class="method"><code id='bind_index_buffer.v'>pub unsafe fn <a href='#method.bind_index_buffer' class='fnname'>bind_index_buffer</a><B>(<br> &mut self, <br> buffer: B, <br> index_ty: <a class="enum" href="../../../vulkano/pipeline/input_assembly/enum.IndexType.html" title="enum vulkano::pipeline::input_assembly::IndexType">IndexType</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../vulkano/command_buffer/synced/enum.SyncCommandBufferBuilderError.html" title="enum vulkano::command_buffer::synced::SyncCommandBufferBuilderError">SyncCommandBufferBuilderError</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#146-212' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdBindIndexBuffer</code> on the builder.</p>
|
||
|
</div><h4 id='method.bind_pipeline_graphics' class="method"><code id='bind_pipeline_graphics.v'>pub unsafe fn <a href='#method.bind_pipeline_graphics' class='fnname'>bind_pipeline_graphics</a><Gp>(&mut self, pipeline: Gp) <span class="where fmt-newline">where<br> Gp: <a class="trait" href="../../../vulkano/pipeline/trait.GraphicsPipelineAbstract.html" title="trait vulkano::pipeline::GraphicsPipelineAbstract">GraphicsPipelineAbstract</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#216-248' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdBindPipeline</code> on the builder with a graphics pipeline.</p>
|
||
|
</div><h4 id='method.bind_pipeline_compute' class="method"><code id='bind_pipeline_compute.v'>pub unsafe fn <a href='#method.bind_pipeline_compute' class='fnname'>bind_pipeline_compute</a><Cp>(&mut self, pipeline: Cp) <span class="where fmt-newline">where<br> Cp: <a class="trait" href="../../../vulkano/pipeline/trait.ComputePipelineAbstract.html" title="trait vulkano::pipeline::ComputePipelineAbstract">ComputePipelineAbstract</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#252-284' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdBindPipeline</code> on the builder with a compute pipeline.</p>
|
||
|
</div><h4 id='method.bind_descriptor_sets' class="method"><code id='bind_descriptor_sets.v'>pub fn <a href='#method.bind_descriptor_sets' class='fnname'>bind_descriptor_sets</a>(<br> &mut self<br>) -> <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilderBindDescriptorSets.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilderBindDescriptorSets">SyncCommandBufferBuilderBindDescriptorSets</a><P></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#289-294' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts the process of binding descriptor sets. Returns an intermediate struct which can be
|
||
|
used to add the sets.</p>
|
||
|
</div><h4 id='method.bind_vertex_buffers' class="method"><code id='bind_vertex_buffers.v'>pub fn <a href='#method.bind_vertex_buffers' class='fnname'>bind_vertex_buffers</a>(<br> &mut self<br>) -> <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilderBindVertexBuffer.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilderBindVertexBuffer">SyncCommandBufferBuilderBindVertexBuffer</a><P></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#299-305' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts the process of binding vertex buffers. Returns an intermediate struct which can be
|
||
|
used to add the buffers.</p>
|
||
|
</div><h4 id='method.copy_image' class="method"><code id='copy_image.v'>pub unsafe fn <a href='#method.copy_image' class='fnname'>copy_image</a><S, D, R>(<br> &mut self, <br> source: S, <br> source_layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br> destination: D, <br> destination_layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br> regions: R<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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../vulkano/command_buffer/synced/enum.SyncCommandBufferBuilderError.html" title="enum vulkano::command_buffer::synced::SyncCommandBufferBuilderError">SyncCommandBufferBuilderError</a>> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../../vulkano/image/traits/trait.ImageAccess.html" title="trait vulkano::image::traits::ImageAccess">ImageAccess</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> + 'static,<br> D: <a class="trait" href="../../../vulkano/image/traits/trait.ImageAccess.html" title="trait vulkano::image::traits::ImageAccess">ImageAccess</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> + 'static,<br> R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="struct" href="../../../vulkano/command_buffer/sys/struct.UnsafeCommandBufferBuilderImageCopy.html" title="struct vulkano::command_buffer::sys::UnsafeCommandBufferBuilderImageCopy">UnsafeCommandBufferBuilderImageCopy</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#312-434' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdCopyImage</code> on the builder.</p>
|
||
|
<p>Does nothing if the list of regions is empty, as it would be a no-op and isn't a valid
|
||
|
usage of the command anyway.</p>
|
||
|
</div><h4 id='method.blit_image' class="method"><code id='blit_image.v'>pub unsafe fn <a href='#method.blit_image' class='fnname'>blit_image</a><S, D, R>(<br> &mut self, <br> source: S, <br> source_layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br> destination: D, <br> destination_layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br> regions: R, <br> filter: <a class="enum" href="../../../vulkano/sampler/enum.Filter.html" title="enum vulkano::sampler::Filter">Filter</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../vulkano/command_buffer/synced/enum.SyncCommandBufferBuilderError.html" title="enum vulkano::command_buffer::synced::SyncCommandBufferBuilderError">SyncCommandBufferBuilderError</a>> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../../vulkano/image/traits/trait.ImageAccess.html" title="trait vulkano::image::traits::ImageAccess">ImageAccess</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> + 'static,<br> D: <a class="trait" href="../../../vulkano/image/traits/trait.ImageAccess.html" title="trait vulkano::image::traits::ImageAccess">ImageAccess</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> + 'static,<br> R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="struct" href="../../../vulkano/command_buffer/sys/struct.UnsafeCommandBufferBuilderImageBlit.html" title="struct vulkano::command_buffer::sys::UnsafeCommandBufferBuilderImageBlit">UnsafeCommandBufferBuilderImageBlit</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#441-567' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdBlitImage</code> on the builder.</p>
|
||
|
<p>Does nothing if the list of regions is empty, as it would be a no-op and isn't a valid
|
||
|
usage of the command anyway.</p>
|
||
|
</div><h4 id='method.clear_color_image' class="method"><code id='clear_color_image.v'>pub unsafe fn <a href='#method.clear_color_image' class='fnname'>clear_color_image</a><I, R>(<br> &mut self, <br> image: I, <br> layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br> color: <a class="enum" href="../../../vulkano/format/enum.ClearValue.html" title="enum vulkano::format::ClearValue">ClearValue</a>, <br> regions: R<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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../vulkano/command_buffer/synced/enum.SyncCommandBufferBuilderError.html" title="enum vulkano::command_buffer::synced::SyncCommandBufferBuilderError">SyncCommandBufferBuilderError</a>> <span class="where fmt-newline">where<br> I: <a class="trait" href="../../../vulkano/image/traits/trait.ImageAccess.html" title="trait vulkano::image::traits::ImageAccess">ImageAccess</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> + 'static,<br> R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="struct" href="../../../vulkano/command_buffer/sys/struct.UnsafeCommandBufferBuilderColorImageClear.html" title="struct vulkano::command_buffer::sys::UnsafeCommandBufferBuilderColorImageClear">UnsafeCommandBufferBuilderColorImageClear</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#573-657' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdClearColorImage</code> on the builder.</p>
|
||
|
<p>Does nothing if the list of regions is empty, as it would be a no-op and isn't a valid
|
||
|
usage of the command anyway.</p>
|
||
|
</div><h4 id='method.copy_buffer' class="method"><code id='copy_buffer.v'>pub unsafe fn <a href='#method.copy_buffer' class='fnname'>copy_buffer</a><S, D, R>(<br> &mut self, <br> source: S, <br> destination: D, <br> regions: R<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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../vulkano/command_buffer/synced/enum.SyncCommandBufferBuilderError.html" title="enum vulkano::command_buffer::synced::SyncCommandBufferBuilderError">SyncCommandBufferBuilderError</a>> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</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> + 'static,<br> D: <a class="trait" href="../../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</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> + 'static,<br> R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <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.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#664-770' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdCopyBuffer</code> on the builder.</p>
|
||
|
<p>Does nothing if the list of regions is empty, as it would be a no-op and isn't a valid
|
||
|
usage of the command anyway.</p>
|
||
|
</div><h4 id='method.copy_buffer_to_image' class="method"><code id='copy_buffer_to_image.v'>pub unsafe fn <a href='#method.copy_buffer_to_image' class='fnname'>copy_buffer_to_image</a><S, D, R>(<br> &mut self, <br> source: S, <br> destination: D, <br> destination_layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br> regions: R<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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../vulkano/command_buffer/synced/enum.SyncCommandBufferBuilderError.html" title="enum vulkano::command_buffer::synced::SyncCommandBufferBuilderError">SyncCommandBufferBuilderError</a>> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</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> + 'static,<br> D: <a class="trait" href="../../../vulkano/image/traits/trait.ImageAccess.html" title="trait vulkano::image::traits::ImageAccess">ImageAccess</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> + 'static,<br> R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="struct" href="../../../vulkano/command_buffer/sys/struct.UnsafeCommandBufferBuilderBufferImageCopy.html" title="struct vulkano::command_buffer::sys::UnsafeCommandBufferBuilderBufferImageCopy">UnsafeCommandBufferBuilderBufferImageCopy</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#777-894' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdCopyBufferToImage</code> on the builder.</p>
|
||
|
<p>Does nothing if the list of regions is empty, as it would be a no-op and isn't a valid
|
||
|
usage of the command anyway.</p>
|
||
|
</div><h4 id='method.copy_image_to_buffer' class="method"><code id='copy_image_to_buffer.v'>pub unsafe fn <a href='#method.copy_image_to_buffer' class='fnname'>copy_image_to_buffer</a><S, D, R>(<br> &mut self, <br> source: S, <br> source_layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br> destination: D, <br> regions: R<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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../vulkano/command_buffer/synced/enum.SyncCommandBufferBuilderError.html" title="enum vulkano::command_buffer::synced::SyncCommandBufferBuilderError">SyncCommandBufferBuilderError</a>> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../../vulkano/image/traits/trait.ImageAccess.html" title="trait vulkano::image::traits::ImageAccess">ImageAccess</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> + 'static,<br> D: <a class="trait" href="../../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</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> + 'static,<br> R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="struct" href="../../../vulkano/command_buffer/sys/struct.UnsafeCommandBufferBuilderBufferImageCopy.html" title="struct vulkano::command_buffer::sys::UnsafeCommandBufferBuilderBufferImageCopy">UnsafeCommandBufferBuilderBufferImageCopy</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#901-1018' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdCopyImageToBuffer</code> on the builder.</p>
|
||
|
<p>Does nothing if the list of regions is empty, as it would be a no-op and isn't a valid
|
||
|
usage of the command anyway.</p>
|
||
|
</div><h4 id='method.dispatch' class="method"><code id='dispatch.v'>pub unsafe fn <a href='#method.dispatch' class='fnname'>dispatch</a>(&mut self, dimensions: <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.u32.html">u32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 3]</a>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1022-1042' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdDispatch</code> on the builder.</p>
|
||
|
</div><h4 id='method.dispatch_indirect' class="method"><code id='dispatch_indirect.v'>pub unsafe fn <a href='#method.dispatch_indirect' class='fnname'>dispatch_indirect</a><B>(<br> &mut self, <br> buffer: B<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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../vulkano/command_buffer/synced/enum.SyncCommandBufferBuilderError.html" title="enum vulkano::command_buffer::synced::SyncCommandBufferBuilderError">SyncCommandBufferBuilderError</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1046-1111' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdDispatchIndirect</code> on the builder.</p>
|
||
|
</div><h4 id='method.draw' class="method"><code id='draw.v'>pub unsafe fn <a href='#method.draw' class='fnname'>draw</a>(<br> &mut self, <br> vertex_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> instance_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> first_vertex: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> first_instance: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1115-1148' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdDraw</code> on the builder.</p>
|
||
|
</div><h4 id='method.draw_indexed' class="method"><code id='draw_indexed.v'>pub unsafe fn <a href='#method.draw_indexed' class='fnname'>draw_indexed</a>(<br> &mut self, <br> index_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> instance_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> first_index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> vertex_offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>, <br> first_instance: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1152-1187' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdDrawIndexed</code> on the builder.</p>
|
||
|
</div><h4 id='method.draw_indirect' class="method"><code id='draw_indirect.v'>pub unsafe fn <a href='#method.draw_indirect' class='fnname'>draw_indirect</a><B>(<br> &mut self, <br> buffer: B, <br> draw_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> stride: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../vulkano/command_buffer/synced/enum.SyncCommandBufferBuilderError.html" title="enum vulkano::command_buffer::synced::SyncCommandBufferBuilderError">SyncCommandBufferBuilderError</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1191-1262' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdDrawIndirect</code> on the builder.</p>
|
||
|
</div><h4 id='method.draw_indexed_indirect' class="method"><code id='draw_indexed_indirect.v'>pub unsafe fn <a href='#method.draw_indexed_indirect' class='fnname'>draw_indexed_indirect</a><B>(<br> &mut self, <br> buffer: B, <br> draw_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> stride: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../vulkano/command_buffer/synced/enum.SyncCommandBufferBuilderError.html" title="enum vulkano::command_buffer::synced::SyncCommandBufferBuilderError">SyncCommandBufferBuilderError</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1266-1337' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdDrawIndexedIndirect</code> on the builder.</p>
|
||
|
</div><h4 id='method.end_render_pass' class="method"><code id='end_render_pass.v'>pub unsafe fn <a href='#method.end_render_pass' class='fnname'>end_render_pass</a>(&mut self)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1341-1360' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdEndRenderPass</code> on the builder.</p>
|
||
|
</div><h4 id='method.execute_commands' class="method"><code id='execute_commands.v'>pub unsafe fn <a href='#method.execute_commands' class='fnname'>execute_commands</a>(<br> &mut self<br>) -> <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilderExecuteCommands.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilderExecuteCommands">SyncCommandBufferBuilderExecuteCommands</a><P></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1365-1371' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts the process of executing secondary command buffers. Returns an intermediate struct
|
||
|
which can be used to add the command buffers.</p>
|
||
|
</div><h4 id='method.fill_buffer' class="method"><code id='fill_buffer.v'>pub unsafe fn <a href='#method.fill_buffer' class='fnname'>fill_buffer</a><B>(&mut self, buffer: B, data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1375-1438' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdFillBuffer</code> on the builder.</p>
|
||
|
</div><h4 id='method.next_subpass' class="method"><code id='next_subpass.v'>pub unsafe fn <a href='#method.next_subpass' class='fnname'>next_subpass</a>(&mut self, subpass_contents: <a class="enum" href="../../../vulkano/framebuffer/enum.SubpassContents.html" title="enum vulkano::framebuffer::SubpassContents">SubpassContents</a>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1442-1462' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdNextSubpass</code> on the builder.</p>
|
||
|
</div><h4 id='method.push_constants' class="method"><code id='push_constants.v'>pub unsafe fn <a href='#method.push_constants' class='fnname'>push_constants</a><Pl, D: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(<br> &mut self, <br> pipeline_layout: Pl, <br> stages: <a class="struct" href="../../../vulkano/descriptor/descriptor/struct.ShaderStages.html" title="struct vulkano::descriptor::descriptor::ShaderStages">ShaderStages</a>, <br> offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>D<br>) <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> + <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> + 'static,<br> D: <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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1466-1522' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdPushConstants</code> on the builder.</p>
|
||
|
</div><h4 id='method.reset_event' class="method"><code id='reset_event.v'>pub unsafe fn <a href='#method.reset_event' class='fnname'>reset_event</a>(&mut self, event: <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/sync/struct.Event.html" title="struct vulkano::sync::Event">Event</a>>, stages: <a class="struct" href="../../../vulkano/sync/struct.PipelineStages.html" title="struct vulkano::sync::PipelineStages">PipelineStages</a>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1526-1553' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdResetEvent</code> on the builder.</p>
|
||
|
</div><h4 id='method.set_blend_constants' class="method"><code id='set_blend_constants.v'>pub unsafe fn <a href='#method.set_blend_constants' class='fnname'>set_blend_constants</a>(&mut 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>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1557-1577' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdSetBlendConstants</code> on the builder.</p>
|
||
|
</div><h4 id='method.set_depth_bias' class="method"><code id='set_depth_bias.v'>pub unsafe fn <a href='#method.set_depth_bias' class='fnname'>set_depth_bias</a>(<br> &mut self, <br> constant_factor: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <br> clamp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <br> slope_factor: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a><br>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1581-1607' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdSetDepthBias</code> on the builder.</p>
|
||
|
</div><h4 id='method.set_depth_bounds' class="method"><code id='set_depth_bounds.v'>pub unsafe fn <a href='#method.set_depth_bounds' class='fnname'>set_depth_bounds</a>(&mut self, min: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, max: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1611-1632' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdSetDepthBounds</code> on the builder.</p>
|
||
|
</div><h4 id='method.set_event' class="method"><code id='set_event.v'>pub unsafe fn <a href='#method.set_event' class='fnname'>set_event</a>(&mut self, event: <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/sync/struct.Event.html" title="struct vulkano::sync::Event">Event</a>>, stages: <a class="struct" href="../../../vulkano/sync/struct.PipelineStages.html" title="struct vulkano::sync::PipelineStages">PipelineStages</a>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1636-1663' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdSetEvent</code> on the builder.</p>
|
||
|
</div><h4 id='method.set_line_width' class="method"><code id='set_line_width.v'>pub unsafe fn <a href='#method.set_line_width' class='fnname'>set_line_width</a>(&mut self, line_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1667-1687' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdSetLineWidth</code> on the builder.</p>
|
||
|
</div><h4 id='method.set_stencil_compare_mask' class="method"><code id='set_stencil_compare_mask.v'>pub unsafe fn <a href='#method.set_stencil_compare_mask' class='fnname'>set_stencil_compare_mask</a>(<br> &mut self, <br> compare_mask: <a class="struct" href="../../../vulkano/pipeline/depth_stencil/struct.DynamicStencilValue.html" title="struct vulkano::pipeline::depth_stencil::DynamicStencilValue">DynamicStencilValue</a><br>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1691-1716' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdSetStencilCompareMask</code> on the builder.</p>
|
||
|
</div><h4 id='method.set_stencil_reference' class="method"><code id='set_stencil_reference.v'>pub unsafe fn <a href='#method.set_stencil_reference' class='fnname'>set_stencil_reference</a>(&mut self, reference: <a class="struct" href="../../../vulkano/pipeline/depth_stencil/struct.DynamicStencilValue.html" title="struct vulkano::pipeline::depth_stencil::DynamicStencilValue">DynamicStencilValue</a>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1720-1745' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdSetStencilReference</code> on the builder.</p>
|
||
|
</div><h4 id='method.set_stencil_write_mask' class="method"><code id='set_stencil_write_mask.v'>pub unsafe fn <a href='#method.set_stencil_write_mask' class='fnname'>set_stencil_write_mask</a>(&mut self, write_mask: <a class="struct" href="../../../vulkano/pipeline/depth_stencil/struct.DynamicStencilValue.html" title="struct vulkano::pipeline::depth_stencil::DynamicStencilValue">DynamicStencilValue</a>)</code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1749-1774' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdSetStencilWriteMask</code> on the builder.</p>
|
||
|
</div><h4 id='method.set_scissor' class="method"><code id='set_scissor.v'>pub unsafe fn <a href='#method.set_scissor' class='fnname'>set_scissor</a><I>(&mut self, first_scissor: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, scissors: I) <span class="where fmt-newline">where<br> I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="struct" href="../../../vulkano/pipeline/viewport/struct.Scissor.html" title="struct vulkano::pipeline::viewport::Scissor">Scissor</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1780-1808' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdSetScissor</code> on the builder.</p>
|
||
|
<p>If the list is empty then the command is automatically ignored.</p>
|
||
|
</div><h4 id='method.set_viewport' class="method"><code id='set_viewport.v'>pub unsafe fn <a href='#method.set_viewport' class='fnname'>set_viewport</a><I>(&mut self, first_viewport: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, viewports: I) <span class="where fmt-newline">where<br> I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="struct" href="../../../vulkano/pipeline/viewport/struct.Viewport.html" title="struct vulkano::pipeline::viewport::Viewport">Viewport</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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1814-1842' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdSetViewport</code> on the builder.</p>
|
||
|
<p>If the list is empty then the command is automatically ignored.</p>
|
||
|
</div><h4 id='method.update_buffer' class="method"><code id='update_buffer.v'>pub unsafe fn <a href='#method.update_buffer' class='fnname'>update_buffer</a><B, D>(&mut self, buffer: B, data: D) <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</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> + 'static,<br> D: <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> + 'static, </span></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/commands.rs.html#1846-1911' title='goto source code'>[src]</a></h4><div class='docblock'><p>Calls <code>vkCmdUpdateBuffer</code> on the builder.</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-DeviceOwned' class='impl'><code class='in-band'>impl<P> <a class="trait" href="../../../vulkano/device/trait.DeviceOwned.html" title="trait vulkano::device::DeviceOwned">DeviceOwned</a> for <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a><P></code><a href='#impl-DeviceOwned' class='anchor'></a><a class='srclink' href='../../../src/vulkano/command_buffer/synced/base.rs.html#787-792' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.device' class="method hidden"><code id='device.v'>fn <a href='../../../vulkano/device/trait.DeviceOwned.html#tymethod.device' class='fnname'>device</a>(&self) -> &<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>></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/base.rs.html#789-791' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the device that owns <code>Self</code>.</p>
|
||
|
</div></div><h3 id='impl-Debug' class='impl'><code class='in-band'>impl<P> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a><P></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../../../src/vulkano/command_buffer/synced/base.rs.html#135-140' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../../../src/vulkano/command_buffer/synced/base.rs.html#137-139' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">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<P> !<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/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a><P></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<P> <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/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a><P> <span class="where fmt-newline">where<br> P: <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<P> !<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/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a><P></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<P> <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/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a><P> <span class="where fmt-newline">where<br> P: <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<P> <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/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a><P> <span class="where fmt-newline">where<br> P: <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-DeviceOwned-1' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../../../vulkano/device/trait.DeviceOwned.html" title="trait vulkano::device::DeviceOwned">DeviceOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> <T as <a class="trait" href="https://
|
||
|
</div></div><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-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>
|