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.
Trac3r-rust/doc/vulkano/command_buffer/synced/struct.SyncCommandBufferBui...

92 lines
82 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!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">&#9776;</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" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-Content">Content</a><a href="#impl-DeviceOwned">DeviceOwned</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></div></div><p class='location'><a href='../../index.html'>vulkano</a>::<wbr><a href='../index.html'>command_buffer</a>::<wbr><a href='index.html'>synced</a></p><script>window.sidebarCurrent = {name: 'SyncCommandBufferBuilder', 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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../src/vulkano/command_buffer/synced/base.rs.html#60-78' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../index.html'>vulkano</a>::<wbr><a href='../index.html'>command_buffer</a>::<wbr><a href='index.html'>synced</a>::<wbr><a class="struct" href=''>SyncCommandBufferBuilder</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct SyncCommandBufferBuilder&lt;P&gt; { /* fields omitted */ }</pre></div><div class='docblock'><p>Wrapper around <code>UnsafeCommandBufferBuilder</code> that handles synchronization for you.</p>
<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&lt;P&gt; <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a>&lt;P&gt;</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>&lt;Pool, R, F, A&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;pool: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Pool, <br>&nbsp;&nbsp;&nbsp;&nbsp;kind: <a class="enum" href="../../../vulkano/command_buffer/sys/enum.Kind.html" title="enum vulkano::command_buffer::sys::Kind">Kind</a>&lt;R, F&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;flags: <a class="enum" href="../../../vulkano/command_buffer/sys/enum.Flags.html" title="enum vulkano::command_buffer::sys::Flags">Flags</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a>&lt;P&gt;, <a class="enum" href="../../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Pool: <a class="trait" href="../../../vulkano/command_buffer/pool/trait.CommandPool.html" title="trait vulkano::command_buffer::pool::CommandPool">CommandPool</a>&lt;Builder = P, Alloc = A&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="../../../vulkano/command_buffer/pool/trait.CommandPoolBuilderAlloc.html" title="trait vulkano::command_buffer::pool::CommandPoolBuilderAlloc">CommandPoolBuilderAlloc</a>&lt;Alloc = A&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../../../vulkano/command_buffer/pool/trait.CommandPoolAlloc.html" title="trait vulkano::command_buffer::pool::CommandPoolAlloc">CommandPoolAlloc</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../../../vulkano/framebuffer/trait.RenderPassAbstract.html" title="trait vulkano::framebuffer::RenderPassAbstract">RenderPassAbstract</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="../../../vulkano/framebuffer/trait.FramebufferAbstract.html" title="trait vulkano::framebuffer::FramebufferAbstract">FramebufferAbstract</a>,&nbsp;</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>&nbsp;&nbsp;&nbsp;&nbsp;cmd: <a class="struct" href="../../../vulkano/command_buffer/sys/struct.UnsafeCommandBufferBuilder.html" title="struct vulkano::command_buffer::sys::UnsafeCommandBufferBuilder">UnsafeCommandBufferBuilder</a>&lt;P&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;is_secondary: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;inside_render_pass: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -&gt; <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a>&lt;P&gt;</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) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBuffer.html" title="struct vulkano::command_buffer::synced::SyncCommandBuffer">SyncCommandBuffer</a>&lt;P::<a class="type" href="../../../vulkano/command_buffer/pool/trait.CommandPoolBuilderAlloc.html#associatedtype.Alloc" title="type vulkano::command_buffer::pool::CommandPoolBuilderAlloc::Alloc">Alloc</a>&gt;, <a class="enum" href="../../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="../../../vulkano/command_buffer/pool/trait.CommandPoolBuilderAlloc.html" title="trait vulkano::command_buffer::pool::CommandPoolBuilderAlloc">CommandPoolBuilderAlloc</a>,&nbsp;</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&lt;P&gt; <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilder.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilder">SyncCommandBufferBuilder</a>&lt;P&gt;</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>&lt;F, I&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;framebuffer: F, <br>&nbsp;&nbsp;&nbsp;&nbsp;subpass_contents: <a class="enum" href="../../../vulkano/framebuffer/enum.SubpassContents.html" title="enum vulkano::framebuffer::SubpassContents">SubpassContents</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;clear_values: I<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;Item = <a class="enum" href="../../../vulkano/format/enum.ClearValue.html" title="enum vulkano::format::ClearValue">ClearValue</a>&gt; + <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,&nbsp;</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>&lt;B&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;buffer: B, <br>&nbsp;&nbsp;&nbsp;&nbsp;index_ty: <a class="enum" href="../../../vulkano/pipeline/input_assembly/enum.IndexType.html" title="enum vulkano::pipeline::input_assembly::IndexType">IndexType</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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,&nbsp;</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>&lt;Gp&gt;(&amp;mut self, pipeline: Gp) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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,&nbsp;</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>&lt;Cp&gt;(&amp;mut self, pipeline: Cp) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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,&nbsp;</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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilderBindDescriptorSets.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilderBindDescriptorSets">SyncCommandBufferBuilderBindDescriptorSets</a>&lt;P&gt;</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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilderBindVertexBuffer.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilderBindVertexBuffer">SyncCommandBufferBuilderBindVertexBuffer</a>&lt;P&gt;</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>&lt;S, D, R&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;source: S, <br>&nbsp;&nbsp;&nbsp;&nbsp;source_layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;destination: D, <br>&nbsp;&nbsp;&nbsp;&nbsp;destination_layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;regions: R<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;Item = <a class="struct" href="../../../vulkano/command_buffer/sys/struct.UnsafeCommandBufferBuilderImageCopy.html" title="struct vulkano::command_buffer::sys::UnsafeCommandBufferBuilderImageCopy">UnsafeCommandBufferBuilderImageCopy</a>&gt; + <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,&nbsp;</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>&lt;S, D, R&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;source: S, <br>&nbsp;&nbsp;&nbsp;&nbsp;source_layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;destination: D, <br>&nbsp;&nbsp;&nbsp;&nbsp;destination_layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;regions: R, <br>&nbsp;&nbsp;&nbsp;&nbsp;filter: <a class="enum" href="../../../vulkano/sampler/enum.Filter.html" title="enum vulkano::sampler::Filter">Filter</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;Item = <a class="struct" href="../../../vulkano/command_buffer/sys/struct.UnsafeCommandBufferBuilderImageBlit.html" title="struct vulkano::command_buffer::sys::UnsafeCommandBufferBuilderImageBlit">UnsafeCommandBufferBuilderImageBlit</a>&gt; + <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,&nbsp;</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>&lt;I, R&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;image: I, <br>&nbsp;&nbsp;&nbsp;&nbsp;layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;color: <a class="enum" href="../../../vulkano/format/enum.ClearValue.html" title="enum vulkano::format::ClearValue">ClearValue</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;regions: R<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;Item = <a class="struct" href="../../../vulkano/command_buffer/sys/struct.UnsafeCommandBufferBuilderColorImageClear.html" title="struct vulkano::command_buffer::sys::UnsafeCommandBufferBuilderColorImageClear">UnsafeCommandBufferBuilderColorImageClear</a>&gt; + <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,&nbsp;</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>&lt;S, D, R&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;source: S, <br>&nbsp;&nbsp;&nbsp;&nbsp;destination: D, <br>&nbsp;&nbsp;&nbsp;&nbsp;regions: R<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;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>&gt; + <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,&nbsp;</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>&lt;S, D, R&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;source: S, <br>&nbsp;&nbsp;&nbsp;&nbsp;destination: D, <br>&nbsp;&nbsp;&nbsp;&nbsp;destination_layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;regions: R<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;Item = <a class="struct" href="../../../vulkano/command_buffer/sys/struct.UnsafeCommandBufferBuilderBufferImageCopy.html" title="struct vulkano::command_buffer::sys::UnsafeCommandBufferBuilderBufferImageCopy">UnsafeCommandBufferBuilderBufferImageCopy</a>&gt; + <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,&nbsp;</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>&lt;S, D, R&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;source: S, <br>&nbsp;&nbsp;&nbsp;&nbsp;source_layout: <a class="enum" href="../../../vulkano/image/enum.ImageLayout.html" title="enum vulkano::image::ImageLayout">ImageLayout</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;destination: D, <br>&nbsp;&nbsp;&nbsp;&nbsp;regions: R<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;Item = <a class="struct" href="../../../vulkano/command_buffer/sys/struct.UnsafeCommandBufferBuilderBufferImageCopy.html" title="struct vulkano::command_buffer::sys::UnsafeCommandBufferBuilderBufferImageCopy">UnsafeCommandBufferBuilderBufferImageCopy</a>&gt; + <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,&nbsp;</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>(&amp;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>&lt;B&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;buffer: B<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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,&nbsp;</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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;vertex_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;instance_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;first_vertex: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;index_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;instance_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;first_index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;vertex_offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;B&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;buffer: B, <br>&nbsp;&nbsp;&nbsp;&nbsp;draw_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;stride: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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,&nbsp;</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>&lt;B&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;buffer: B, <br>&nbsp;&nbsp;&nbsp;&nbsp;draw_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;stride: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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,&nbsp;</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>(&amp;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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="struct" href="../../../vulkano/command_buffer/synced/struct.SyncCommandBufferBuilderExecuteCommands.html" title="struct vulkano::command_buffer::synced::SyncCommandBufferBuilderExecuteCommands">SyncCommandBufferBuilderExecuteCommands</a>&lt;P&gt;</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>&lt;B&gt;(&amp;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>&nbsp;&nbsp;&nbsp;&nbsp;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,&nbsp;</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>(&amp;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>&lt;Pl, D:&nbsp;?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;pipeline_layout: Pl, <br>&nbsp;&nbsp;&nbsp;&nbsp;stages: <a class="struct" href="../../../vulkano/descriptor/descriptor/struct.ShaderStages.html" title="struct vulkano::descriptor::descriptor::ShaderStages">ShaderStages</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>D<br>) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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,&nbsp;</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>(&amp;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>&lt;<a class="struct" href="../../../vulkano/sync/struct.Event.html" title="struct vulkano::sync::Event">Event</a>&gt;, 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>(&amp;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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;constant_factor: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;clamp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;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>(&amp;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>(&amp;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>&lt;<a class="struct" href="../../../vulkano/sync/struct.Event.html" title="struct vulkano::sync::Event">Event</a>&gt;, 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>(&amp;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>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;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>(&amp;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>(&amp;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>&lt;I&gt;(&amp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;Item = <a class="struct" href="../../../vulkano/pipeline/viewport/struct.Scissor.html" title="struct vulkano::pipeline::viewport::Scissor">Scissor</a>&gt; + <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,&nbsp;</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>&lt;I&gt;(&amp;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>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;Item = <a class="struct" href="../../../vulkano/pipeline/viewport/struct.Viewport.html" title="struct vulkano::pipeline::viewport::Viewport">Viewport</a>&gt; + <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,&nbsp;</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>&lt;B, D&gt;(&amp;mut self, buffer: B, data: D) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;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,&nbsp;</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&lt;P&gt; <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>&lt;P&gt;</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>(&amp;self) -&gt; &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;<a class="struct" href="../../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>&gt;</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&lt;P&gt; <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>&lt;P&gt;</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>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <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&lt;P&gt; !<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>&lt;P&gt;</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&lt;P&gt; <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>&lt;P&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</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&lt;P&gt; !<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>&lt;P&gt;</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&lt;P&gt; <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>&lt;P&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,&nbsp;</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&lt;P&gt; <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>&lt;P&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,&nbsp;</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&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;&lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>: <a class="trait" href="../../../vulkano/device/trait.DeviceOwned.html" title="trait vulkano::device::DeviceOwned">DeviceOwned</a>,&nbsp;</span></code><a href='#impl-DeviceOwned-1' class='anchor'></a><a class='srclink' href='../../../src/vulkano/device/mod.rs.html#557-565' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.device-1' class="method hidden"><code id='device.v-1'>fn <a href='../../../vulkano/device/trait.DeviceOwned.html#tymethod.device' class='fnname'>device</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;<a class="struct" href="../../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>&gt;</code><a class='srclink' href='../../../src/vulkano/device/mod.rs.html#562-564' 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-Content' class='impl'><code class='in-band'>impl&lt;T&gt; <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>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut T</a>&gt;</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>) -&gt; <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>() -&gt; <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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</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) -&gt; 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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; 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) -&gt; 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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</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) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<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>&gt;</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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</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> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<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) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<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>&gt;</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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</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&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;self) -&gt; <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>&#9166;</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>