|
|
<!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 `AutoCommandBufferBuilder` struct in crate `vulkano`."><meta name="keywords" content="rust, rustlang, rust-lang, AutoCommandBufferBuilder"><title>vulkano::command_buffer::AutoCommandBufferBuilder - 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 AutoCommandBufferBuilder</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.blit_image">blit_image</a><a href="#method.build">build</a><a href="#method.clear_color_image">clear_color_image</a><a href="#method.clear_color_image_dimensions">clear_color_image_dimensions</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_buffer_to_image_dimensions">copy_buffer_to_image_dimensions</a><a href="#method.copy_image">copy_image</a><a href="#method.copy_image_to_buffer">copy_image_to_buffer</a><a href="#method.copy_image_to_buffer_dimensions">copy_image_to_buffer_dimensions</a><a href="#method.dispatch">dispatch</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.new">new</a><a href="#method.next_subpass">next_subpass</a><a href="#method.primary">primary</a><a href="#method.primary_one_time_submit">primary_one_time_submit</a><a href="#method.primary_simultaneous_use">primary_simultaneous_use</a><a href="#method.secondary_compute">secondary_compute</a><a href="#method.secondary_compute_inherit_queries">secondary_compute_inherit_queries</a><a href="#method.secondary_compute_one_time_submit">secondary_compute_one_time_submit</a><a href="#method.secondary_compute_one_time_submit_inherit_queries">secondary_compute_one_time_submit_inherit_queries</a><a href="#method.secondary_compute_simultaneous_use">secondary_compute_simultaneous_use</a><a href="#method.secondary_compute_simultaneous_use_inherit_queries">secondary_compute_simultaneous_use_inherit_queries</a><a href="#method.secondary_graphics">secondary_graphics</a><a href="#method.secondary_graphics_inherit_queries">secondary_graphics_inherit_queries</a><a href="#method.secondary_graphics_one_time_submit">secondary_graphics_one_time_submit</a><a href="#method.secondary_graphics_one_time_submit_inherit_queries">secondary_graphics_one_time_submit_inherit_queries</a><a href="#method.secondary_graphics_simultaneous_use">secondary_graphics_simultaneous_use</a><a href="#method.secondary_graphics_simultaneous_use_inherit_queries">secondary_graphics_simultaneous_use_inherit_queries</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-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<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Content">Content</a><a href="#impl-DeviceOwned">DeviceOwned</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='../index.html'>vulkano</a>::<wbr><a href='index.html'>command_buffer</a></p><script>window.sidebarCurrent = {name: 'AutoCommandBufferBuilder', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#83-105' 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 class="struct" href=''>AutoCommandBufferBuilder</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct AutoCommandBufferBuilder<P = <a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>> { /* fields omitted */ }</pre></div><div class='docblock'><p>Note that command buffers allocated from the default command pool (<code>Arc<StandardCommandPool></code>)
|
|
|
don't implement the <code>Send</code> and <code>Sync</code> traits. If you use this pool, then the
|
|
|
<code>AutoCommandBufferBuilder</code> will not implement <code>Send</code> and <code>Sync</code> either. Once a command buffer
|
|
|
is built, however, it <em>does</em> implement <code>Send</code> and <code>Sync</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 <a class="struct" href="../../vulkano/command_buffer/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#107-399' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub fn <a href='#method.new' class='fnname'>new</a>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#109-112' title='goto source code'>[src]</a></h4><h4 id='method.primary' class="method"><code id='primary.v'>pub fn <a href='#method.primary' class='fnname'>primary</a>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#119-122' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts building a primary command buffer.</p>
|
|
|
<p>The final command buffer can only be executed once at a time. In other words, it is as if
|
|
|
executing the command buffer modifies it.</p>
|
|
|
</div><h4 id='method.primary_one_time_submit' class="method"><code id='primary_one_time_submit.v'>pub fn <a href='#method.primary_one_time_submit' class='fnname'>primary_one_time_submit</a>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#130-137' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts building a primary command buffer.</p>
|
|
|
<p>Contrary to <code>primary</code>, the final command buffer can only be submitted once before being
|
|
|
destroyed. This makes it possible for the implementation to perform additional
|
|
|
optimizations.</p>
|
|
|
</div><h4 id='method.primary_simultaneous_use' class="method"><code id='primary_simultaneous_use.v'>pub fn <a href='#method.primary_simultaneous_use' class='fnname'>primary_simultaneous_use</a>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#144-151' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts building a primary command buffer.</p>
|
|
|
<p>Contrary to <code>primary</code>, the final command buffer can be executed multiple times in parallel
|
|
|
in multiple different queues.</p>
|
|
|
</div><h4 id='method.secondary_compute' class="method"><code id='secondary_compute.v'>pub fn <a href='#method.secondary_compute' class='fnname'>secondary_compute</a>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#158-164' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts building a secondary compute command buffer.</p>
|
|
|
<p>The final command buffer can only be executed once at a time. In other words, it is as if
|
|
|
executing the command buffer modifies it.</p>
|
|
|
</div><h4 id='method.secondary_compute_one_time_submit' class="method"><code id='secondary_compute_one_time_submit.v'>pub fn <a href='#method.secondary_compute_one_time_submit' class='fnname'>secondary_compute_one_time_submit</a>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#172-178' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts building a secondary compute command buffer.</p>
|
|
|
<p>Contrary to <code>secondary_compute</code>, the final command buffer can only be submitted once before
|
|
|
being destroyed. This makes it possible for the implementation to perform additional
|
|
|
optimizations.</p>
|
|
|
</div><h4 id='method.secondary_compute_simultaneous_use' class="method"><code id='secondary_compute_simultaneous_use.v'>pub fn <a href='#method.secondary_compute_simultaneous_use' class='fnname'>secondary_compute_simultaneous_use</a>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#185-191' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts building a secondary compute command buffer.</p>
|
|
|
<p>Contrary to <code>secondary_compute</code>, the final command buffer can be executed multiple times in
|
|
|
parallel in multiple different queues.</p>
|
|
|
</div><h4 id='method.secondary_compute_inherit_queries' class="method"><code id='secondary_compute_inherit_queries.v'>pub fn <a href='#method.secondary_compute_inherit_queries' class='fnname'>secondary_compute_inherit_queries</a>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</a>, <br> occlusion_query: <a class="enum" href="../../vulkano/command_buffer/sys/enum.KindOcclusionQuery.html" title="enum vulkano::command_buffer::sys::KindOcclusionQuery">KindOcclusionQuery</a>, <br> query_statistics_flags: <a class="struct" href="../../vulkano/query/struct.QueryPipelineStatisticFlags.html" title="struct vulkano::query::QueryPipelineStatisticFlags">QueryPipelineStatisticFlags</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#195-201' title='goto source code'>[src]</a></h4><div class='docblock'><p>Same as <code>secondary_compute</code>, but allows specifying how queries are being inherited.</p>
|
|
|
</div><h4 id='method.secondary_compute_one_time_submit_inherit_queries' class="method"><code id='secondary_compute_one_time_submit_inherit_queries.v'>pub fn <a href='#method.secondary_compute_one_time_submit_inherit_queries' class='fnname'>secondary_compute_one_time_submit_inherit_queries</a>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</a>, <br> occlusion_query: <a class="enum" href="../../vulkano/command_buffer/sys/enum.KindOcclusionQuery.html" title="enum vulkano::command_buffer::sys::KindOcclusionQuery">KindOcclusionQuery</a>, <br> query_statistics_flags: <a class="struct" href="../../vulkano/query/struct.QueryPipelineStatisticFlags.html" title="struct vulkano::query::QueryPipelineStatisticFlags">QueryPipelineStatisticFlags</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#205-211' title='goto source code'>[src]</a></h4><div class='docblock'><p>Same as <code>secondary_compute_one_time_submit</code>, but allows specifying how queries are being inherited.</p>
|
|
|
</div><h4 id='method.secondary_compute_simultaneous_use_inherit_queries' class="method"><code id='secondary_compute_simultaneous_use_inherit_queries.v'>pub fn <a href='#method.secondary_compute_simultaneous_use_inherit_queries' class='fnname'>secondary_compute_simultaneous_use_inherit_queries</a>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</a>, <br> occlusion_query: <a class="enum" href="../../vulkano/command_buffer/sys/enum.KindOcclusionQuery.html" title="enum vulkano::command_buffer::sys::KindOcclusionQuery">KindOcclusionQuery</a>, <br> query_statistics_flags: <a class="struct" href="../../vulkano/query/struct.QueryPipelineStatisticFlags.html" title="struct vulkano::query::QueryPipelineStatisticFlags">QueryPipelineStatisticFlags</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#215-221' title='goto source code'>[src]</a></h4><div class='docblock'><p>Same as <code>secondary_compute_simultaneous_use</code>, but allows specifying how queries are being inherited.</p>
|
|
|
</div><h4 id='method.secondary_graphics' class="method"><code id='secondary_graphics.v'>pub fn <a href='#method.secondary_graphics' class='fnname'>secondary_graphics</a><R>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</a>, <br> subpass: <a class="struct" href="../../vulkano/framebuffer/struct.Subpass.html" title="struct vulkano::framebuffer::Subpass">Subpass</a><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="struct" href="../../vulkano/command_buffer/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>> <span class="where fmt-newline">where<br> R: <a class="trait" href="../../vulkano/framebuffer/trait.RenderPassAbstract.html" title="trait vulkano::framebuffer::RenderPassAbstract">RenderPassAbstract</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</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/auto.rs.html#228-245' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts building a secondary graphics command buffer.</p>
|
|
|
<p>The final command buffer can only be executed once at a time. In other words, it is as if
|
|
|
executing the command buffer modifies it.</p>
|
|
|
</div><h4 id='method.secondary_graphics_one_time_submit' class="method"><code id='secondary_graphics_one_time_submit.v'>pub fn <a href='#method.secondary_graphics_one_time_submit' class='fnname'>secondary_graphics_one_time_submit</a><R>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</a>, <br> subpass: <a class="struct" href="../../vulkano/framebuffer/struct.Subpass.html" title="struct vulkano::framebuffer::Subpass">Subpass</a><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="struct" href="../../vulkano/command_buffer/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>> <span class="where fmt-newline">where<br> R: <a class="trait" href="../../vulkano/framebuffer/trait.RenderPassAbstract.html" title="trait vulkano::framebuffer::RenderPassAbstract">RenderPassAbstract</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</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/auto.rs.html#253-270' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts building a secondary graphics command buffer.</p>
|
|
|
<p>Contrary to <code>secondary_graphics</code>, the final command buffer can only be submitted once
|
|
|
before being destroyed. This makes it possible for the implementation to perform additional
|
|
|
optimizations.</p>
|
|
|
</div><h4 id='method.secondary_graphics_simultaneous_use' class="method"><code id='secondary_graphics_simultaneous_use.v'>pub fn <a href='#method.secondary_graphics_simultaneous_use' class='fnname'>secondary_graphics_simultaneous_use</a><R>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</a>, <br> subpass: <a class="struct" href="../../vulkano/framebuffer/struct.Subpass.html" title="struct vulkano::framebuffer::Subpass">Subpass</a><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="struct" href="../../vulkano/command_buffer/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>> <span class="where fmt-newline">where<br> R: <a class="trait" href="../../vulkano/framebuffer/trait.RenderPassAbstract.html" title="trait vulkano::framebuffer::RenderPassAbstract">RenderPassAbstract</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</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/auto.rs.html#277-294' title='goto source code'>[src]</a></h4><div class='docblock'><p>Starts building a secondary graphics command buffer.</p>
|
|
|
<p>Contrary to <code>secondary_graphics</code>, the final command buffer can be executed multiple times
|
|
|
in parallel in multiple different queues.</p>
|
|
|
</div><h4 id='method.secondary_graphics_inherit_queries' class="method"><code id='secondary_graphics_inherit_queries.v'>pub fn <a href='#method.secondary_graphics_inherit_queries' class='fnname'>secondary_graphics_inherit_queries</a><R>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</a>, <br> subpass: <a class="struct" href="../../vulkano/framebuffer/struct.Subpass.html" title="struct vulkano::framebuffer::Subpass">Subpass</a><R>, <br> occlusion_query: <a class="enum" href="../../vulkano/command_buffer/sys/enum.KindOcclusionQuery.html" title="enum vulkano::command_buffer::sys::KindOcclusionQuery">KindOcclusionQuery</a>, <br> query_statistics_flags: <a class="struct" href="../../vulkano/query/struct.QueryPipelineStatisticFlags.html" title="struct vulkano::query::QueryPipelineStatisticFlags">QueryPipelineStatisticFlags</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>> <span class="where fmt-newline">where<br> R: <a class="trait" href="../../vulkano/framebuffer/trait.RenderPassAbstract.html" title="trait vulkano::framebuffer::RenderPassAbstract">RenderPassAbstract</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</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/auto.rs.html#298-316' title='goto source code'>[src]</a></h4><div class='docblock'><p>Same as <code>secondary_graphics</code>, but allows specifying how queries are being inherited.</p>
|
|
|
</div><h4 id='method.secondary_graphics_one_time_submit_inherit_queries' class="method"><code id='secondary_graphics_one_time_submit_inherit_queries.v'>pub fn <a href='#method.secondary_graphics_one_time_submit_inherit_queries' class='fnname'>secondary_graphics_one_time_submit_inherit_queries</a><R>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</a>, <br> subpass: <a class="struct" href="../../vulkano/framebuffer/struct.Subpass.html" title="struct vulkano::framebuffer::Subpass">Subpass</a><R>, <br> occlusion_query: <a class="enum" href="../../vulkano/command_buffer/sys/enum.KindOcclusionQuery.html" title="enum vulkano::command_buffer::sys::KindOcclusionQuery">KindOcclusionQuery</a>, <br> query_statistics_flags: <a class="struct" href="../../vulkano/query/struct.QueryPipelineStatisticFlags.html" title="struct vulkano::query::QueryPipelineStatisticFlags">QueryPipelineStatisticFlags</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>> <span class="where fmt-newline">where<br> R: <a class="trait" href="../../vulkano/framebuffer/trait.RenderPassAbstract.html" title="trait vulkano::framebuffer::RenderPassAbstract">RenderPassAbstract</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</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/auto.rs.html#320-338' title='goto source code'>[src]</a></h4><div class='docblock'><p>Same as <code>secondary_graphics_one_time_submit</code>, but allows specifying how queries are being inherited.</p>
|
|
|
</div><h4 id='method.secondary_graphics_simultaneous_use_inherit_queries' class="method"><code id='secondary_graphics_simultaneous_use_inherit_queries.v'>pub fn <a href='#method.secondary_graphics_simultaneous_use_inherit_queries' class='fnname'>secondary_graphics_simultaneous_use_inherit_queries</a><R>(<br> device: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../../vulkano/device/struct.Device.html" title="struct vulkano::device::Device">Device</a>>, <br> queue_family: <a class="struct" href="../../vulkano/instance/struct.QueueFamily.html" title="struct vulkano::instance::QueueFamily">QueueFamily</a>, <br> subpass: <a class="struct" href="../../vulkano/framebuffer/struct.Subpass.html" title="struct vulkano::framebuffer::Subpass">Subpass</a><R>, <br> occlusion_query: <a class="enum" href="../../vulkano/command_buffer/sys/enum.KindOcclusionQuery.html" title="enum vulkano::command_buffer::sys::KindOcclusionQuery">KindOcclusionQuery</a>, <br> query_statistics_flags: <a class="struct" href="../../vulkano/query/struct.QueryPipelineStatisticFlags.html" title="struct vulkano::query::QueryPipelineStatisticFlags">QueryPipelineStatisticFlags</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><<a class="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>>, <a class="enum" href="../../vulkano/enum.OomError.html" title="enum vulkano::OomError">OomError</a>> <span class="where fmt-newline">where<br> R: <a class="trait" href="../../vulkano/framebuffer/trait.RenderPassAbstract.html" title="trait vulkano::framebuffer::RenderPassAbstract">RenderPassAbstract</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</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/auto.rs.html#342-360' title='goto source code'>[src]</a></h4><div class='docblock'><p>Same as <code>secondary_graphics_simultaneous_use</code>, but allows specifying how queries are being inherited.</p>
|
|
|
</div></div><h3 id='impl-1' class='impl'><code class='in-band'>impl<P> <a class="struct" href="../../vulkano/command_buffer/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><P></code><a href='#impl-1' class='anchor'></a><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#401-1348' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.build' class="method"><code id='build.v'>pub fn <a href='#method.build' class='fnname'>build</a>(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/struct.AutoCommandBuffer.html" title="struct vulkano::command_buffer::AutoCommandBuffer">AutoCommandBuffer</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/command_buffer/enum.BuildError.html" title="enum vulkano::command_buffer::BuildError">BuildError</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/auto.rs.html#453-476' title='goto source code'>[src]</a></h4><div class='docblock'><p>Builds the command buffer.</p>
|
|
|
</div><h4 id='method.begin_render_pass' class="method"><code id='begin_render_pass.v'>pub fn <a href='#method.begin_render_pass' class='fnname'>begin_render_pass</a><F, C>(<br> self, <br> framebuffer: F, <br> secondary: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> clear_values: C<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.BeginRenderPassError.html" title="enum vulkano::command_buffer::BeginRenderPassError">BeginRenderPassError</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="../../vulkano/framebuffer/trait.RenderPassDescClearValues.html" title="trait vulkano::framebuffer::RenderPassDescClearValues">RenderPassDescClearValues</a><C> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</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/auto.rs.html#488-566' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that enters a render pass.</p>
|
|
|
<p>If <code>secondary</code> is true, then you will only be able to add secondary command buffers while
|
|
|
you're inside the first subpass of the render pass. If <code>secondary</code> is false, you will only
|
|
|
be able to add inline draw commands and not secondary command buffers.</p>
|
|
|
<p>C must contain exactly one clear value for each attachment in the framebuffer.</p>
|
|
|
<p>You must call this before you can add draw commands.</p>
|
|
|
</div><h4 id='method.copy_image' class="method"><code id='copy_image.v'>pub fn <a href='#method.copy_image' class='fnname'>copy_image</a><S, D>(<br> self, <br> source: S, <br> source_offset: <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.i32.html">i32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 3]</a>, <br> source_base_array_layer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> source_mip_level: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> destination: D, <br> destination_offset: <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.i32.html">i32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 3]</a>, <br> destination_base_array_layer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> destination_mip_level: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> extent: <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>, <br> layer_count: <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><Self, <a class="enum" href="../../vulkano/command_buffer/enum.CopyImageError.html" title="enum vulkano::command_buffer::CopyImageError">CopyImageError</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, </span></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#590-642' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that copies an image to another.</p>
|
|
|
<p>Copy operations have several restrictions:</p>
|
|
|
<ul>
|
|
|
<li>Copy operations are only allowed on queue families that support transfer, graphics, or
|
|
|
compute operations.</li>
|
|
|
<li>The number of samples in the source and destination images must be equal.</li>
|
|
|
<li>The size of the uncompressed element format of the source image must be equal to the
|
|
|
compressed element format of the destination.</li>
|
|
|
<li>If you copy between depth, stencil or depth-stencil images, the format of both images
|
|
|
must match exactly.</li>
|
|
|
<li>For two-dimensional images, the Z coordinate must be 0 for the image offsets and 1 for
|
|
|
the extent. Same for the Y coordinate for one-dimensional images.</li>
|
|
|
<li>For non-array images, the base array layer must be 0 and the number of layers must be 1.</li>
|
|
|
</ul>
|
|
|
<p>If <code>layer_count</code> is greater than 1, the copy will happen between each individual layer as
|
|
|
if they were separate images.</p>
|
|
|
<h1 id="panic" class="section-header"><a href="#panic">Panic</a></h1>
|
|
|
<ul>
|
|
|
<li>Panics if the source or the destination was not created with <code>device</code>.</li>
|
|
|
</ul>
|
|
|
</div><h4 id='method.blit_image' class="method"><code id='blit_image.v'>pub fn <a href='#method.blit_image' class='fnname'>blit_image</a><S, D>(<br> self, <br> source: S, <br> source_top_left: <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.i32.html">i32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 3]</a>, <br> source_bottom_right: <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.i32.html">i32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 3]</a>, <br> source_base_array_layer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> source_mip_level: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> destination: D, <br> destination_top_left: <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.i32.html">i32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 3]</a>, <br> destination_bottom_right: <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.i32.html">i32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 3]</a>, <br> destination_base_array_layer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> destination_mip_level: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> layer_count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <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><Self, <a class="enum" href="../../vulkano/command_buffer/enum.BlitImageError.html" title="enum vulkano::command_buffer::BlitImageError">BlitImageError</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, </span></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#675-736' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that blits an image to another.</p>
|
|
|
<p>A <em>blit</em> is similar to an image copy operation, except that the portion of the image that
|
|
|
is transferred can be resized. You choose an area of the source and an area of the
|
|
|
destination, and the implementation will resize the area of the source so that it matches
|
|
|
the size of the area of the destination before writing it.</p>
|
|
|
<p>Blit operations have several restrictions:</p>
|
|
|
<ul>
|
|
|
<li>Blit operations are only allowed on queue families that support graphics operations.</li>
|
|
|
<li>The format of the source and destination images must support blit operations, which
|
|
|
depends on the Vulkan implementation. Vulkan guarantees that some specific formats must
|
|
|
always be supported. See tables 52 to 61 of the specifications.</li>
|
|
|
<li>Only single-sampled images are allowed.</li>
|
|
|
<li>You can only blit between two images whose formats belong to the same type. The types
|
|
|
are: floating-point, signed integers, unsigned integers, depth-stencil.</li>
|
|
|
<li>If you blit between depth, stencil or depth-stencil images, the format of both images
|
|
|
must match exactly.</li>
|
|
|
<li>If you blit between depth, stencil or depth-stencil images, only the <code>Nearest</code> filter is
|
|
|
allowed.</li>
|
|
|
<li>For two-dimensional images, the Z coordinate must be 0 for the top-left offset and 1 for
|
|
|
the bottom-right offset. Same for the Y coordinate for one-dimensional images.</li>
|
|
|
<li>For non-array images, the base array layer must be 0 and the number of layers must be 1.</li>
|
|
|
</ul>
|
|
|
<p>If <code>layer_count</code> is greater than 1, the blit will happen between each individual layer as
|
|
|
if they were separate images.</p>
|
|
|
<h1 id="panic-1" class="section-header"><a href="#panic-1">Panic</a></h1>
|
|
|
<ul>
|
|
|
<li>Panics if the source or the destination was not created with <code>device</code>.</li>
|
|
|
</ul>
|
|
|
</div><h4 id='method.clear_color_image' class="method"><code id='clear_color_image.v'>pub fn <a href='#method.clear_color_image' class='fnname'>clear_color_image</a><I>(<br> self, <br> image: I, <br> color: <a class="enum" href="../../vulkano/format/enum.ClearValue.html" title="enum vulkano::format::ClearValue">ClearValue</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.ClearColorImageError.html" title="enum vulkano::command_buffer::ClearColorImageError">ClearColorImageError</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, </span></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#745-753' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that clears all the layers and mipmap levels of a color image with a
|
|
|
specific value.</p>
|
|
|
<h1 id="panic-2" class="section-header"><a href="#panic-2">Panic</a></h1>
|
|
|
<p>Panics if <code>color</code> is not a color value.</p>
|
|
|
</div><h4 id='method.clear_color_image_dimensions' class="method"><code id='clear_color_image_dimensions.v'>pub fn <a href='#method.clear_color_image_dimensions' class='fnname'>clear_color_image_dimensions</a><I>(<br> self, <br> image: I, <br> first_layer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> num_layers: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> first_mipmap: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> num_mipmaps: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> color: <a class="enum" href="../../vulkano/format/enum.ClearValue.html" title="enum vulkano::format::ClearValue">ClearValue</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.ClearColorImageError.html" title="enum vulkano::command_buffer::ClearColorImageError">ClearColorImageError</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, </span></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#761-801' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that clears a color image with a specific value.</p>
|
|
|
<h1 id="panic-3" class="section-header"><a href="#panic-3">Panic</a></h1>
|
|
|
<ul>
|
|
|
<li>Panics if <code>color</code> is not a color value.</li>
|
|
|
</ul>
|
|
|
</div><h4 id='method.copy_buffer' class="method"><code id='copy_buffer.v'>pub fn <a href='#method.copy_buffer' class='fnname'>copy_buffer</a><S, D, T>(<br> self, <br> source: S, <br> destination: D<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.CopyBufferError.html" title="enum vulkano::command_buffer::CopyBufferError">CopyBufferError</a>> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../vulkano/buffer/trait.TypedBufferAccess.html" title="trait vulkano::buffer::TypedBufferAccess">TypedBufferAccess</a><Content = T> + <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.TypedBufferAccess.html" title="trait vulkano::buffer::TypedBufferAccess">TypedBufferAccess</a><Content = T> + <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> 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 class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#808-821' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that copies from a buffer to another.</p>
|
|
|
<p>This command will copy from the source to the destination. If their size is not equal, then
|
|
|
the amount of data copied is equal to the smallest of the two.</p>
|
|
|
</div><h4 id='method.copy_buffer_to_image' class="method"><code id='copy_buffer_to_image.v'>pub fn <a href='#method.copy_buffer_to_image' class='fnname'>copy_buffer_to_image</a><S, D, Px>(<br> self, <br> source: S, <br> destination: D<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.CopyBufferImageError.html" title="enum vulkano::command_buffer::CopyBufferImageError">CopyBufferImageError</a>> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../vulkano/buffer/trait.TypedBufferAccess.html" title="trait vulkano::buffer::TypedBufferAccess">TypedBufferAccess</a><Content = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>Px<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.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,<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> <a class="enum" href="../../vulkano/format/enum.Format.html" title="enum vulkano::format::Format">Format</a>: <a class="trait" href="../../vulkano/format/trait.AcceptsPixels.html" title="trait vulkano::format::AcceptsPixels">AcceptsPixels</a><Px>, </span></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#824-834' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that copies from a buffer to an image.</p>
|
|
|
</div><h4 id='method.copy_buffer_to_image_dimensions' class="method"><code id='copy_buffer_to_image_dimensions.v'>pub fn <a href='#method.copy_buffer_to_image_dimensions' class='fnname'>copy_buffer_to_image_dimensions</a><S, D, Px>(<br> self, <br> source: S, <br> destination: D, <br> offset: <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>, <br> size: <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>, <br> first_layer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> num_layers: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> mipmap: <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><Self, <a class="enum" href="../../vulkano/command_buffer/enum.CopyBufferImageError.html" title="enum vulkano::command_buffer::CopyBufferImageError">CopyBufferImageError</a>> <span class="where fmt-newline">where<br> S: <a class="trait" href="../../vulkano/buffer/trait.TypedBufferAccess.html" title="trait vulkano::buffer::TypedBufferAccess">TypedBufferAccess</a><Content = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>Px<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.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,<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> <a class="enum" href="../../vulkano/format/enum.Format.html" title="enum vulkano::format::Format">Format</a>: <a class="trait" href="../../vulkano/format/trait.AcceptsPixels.html" title="trait vulkano::format::AcceptsPixels">AcceptsPixels</a><Px>, </span></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#837-885' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that copies from a buffer to an image.</p>
|
|
|
</div><h4 id='method.copy_image_to_buffer' class="method"><code id='copy_image_to_buffer.v'>pub fn <a href='#method.copy_image_to_buffer' class='fnname'>copy_image_to_buffer</a><S, D, Px>(<br> self, <br> source: S, <br> destination: D<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.CopyBufferImageError.html" title="enum vulkano::command_buffer::CopyBufferImageError">CopyBufferImageError</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.TypedBufferAccess.html" title="trait vulkano::buffer::TypedBufferAccess">TypedBufferAccess</a><Content = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>Px<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.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,<br> <a class="enum" href="../../vulkano/format/enum.Format.html" title="enum vulkano::format::Format">Format</a>: <a class="trait" href="../../vulkano/format/trait.AcceptsPixels.html" title="trait vulkano::format::AcceptsPixels">AcceptsPixels</a><Px>, </span></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#888-898' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that copies from an image to a buffer.</p>
|
|
|
</div><h4 id='method.copy_image_to_buffer_dimensions' class="method"><code id='copy_image_to_buffer_dimensions.v'>pub fn <a href='#method.copy_image_to_buffer_dimensions' class='fnname'>copy_image_to_buffer_dimensions</a><S, D, Px>(<br> self, <br> source: S, <br> destination: D, <br> offset: <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>, <br> size: <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>, <br> first_layer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> num_layers: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> mipmap: <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><Self, <a class="enum" href="../../vulkano/command_buffer/enum.CopyBufferImageError.html" title="enum vulkano::command_buffer::CopyBufferImageError">CopyBufferImageError</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.TypedBufferAccess.html" title="trait vulkano::buffer::TypedBufferAccess">TypedBufferAccess</a><Content = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>Px<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.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,<br> <a class="enum" href="../../vulkano/format/enum.Format.html" title="enum vulkano::format::Format">Format</a>: <a class="trait" href="../../vulkano/format/trait.AcceptsPixels.html" title="trait vulkano::format::AcceptsPixels">AcceptsPixels</a><Px>, </span></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#901-945' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that copies from an image to a buffer.</p>
|
|
|
</div><h4 id='method.dispatch' class="method"><code id='dispatch.v'>pub fn <a href='#method.dispatch' class='fnname'>dispatch</a><Cp, S, Pc>(<br> self, <br> 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>, <br> pipeline: Cp, <br> sets: S, <br> constants: Pc<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.DispatchError.html" title="enum vulkano::command_buffer::DispatchError">DispatchError</a>> <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 + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> S: <a class="trait" href="../../vulkano/descriptor/descriptor_set/collection/trait.DescriptorSetsCollection.html" title="trait vulkano::descriptor::descriptor_set::collection::DescriptorSetsCollection">DescriptorSetsCollection</a>, </span></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#948-979' title='goto source code'>[src]</a></h4><h4 id='method.draw' class="method"><code id='draw.v'>pub fn <a href='#method.draw' class='fnname'>draw</a><V, Gp, S, Pc>(<br> self, <br> pipeline: Gp, <br> dynamic: &<a class="struct" href="../../vulkano/command_buffer/struct.DynamicState.html" title="struct vulkano::command_buffer::DynamicState">DynamicState</a>, <br> vertex_buffer: V, <br> sets: S, <br> constants: Pc<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.DrawError.html" title="enum vulkano::command_buffer::DrawError">DrawError</a>> <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="../../vulkano/pipeline/vertex/trait.VertexSource.html" title="trait vulkano::pipeline::vertex::VertexSource">VertexSource</a><V> + <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 + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> S: <a class="trait" href="../../vulkano/descriptor/descriptor_set/collection/trait.DescriptorSetsCollection.html" title="trait vulkano::descriptor::descriptor_set::collection::DescriptorSetsCollection">DescriptorSetsCollection</a>, </span></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#985-1027' title='goto source code'>[src]</a></h4><div class='docblock'><p>Draw once, using the <code>vertex_buffer</code>.</p>
|
|
|
<p>To use only some data in the buffer, wrap it in a <code>vulkano::buffer::BufferSlice</code>.</p>
|
|
|
</div><h4 id='method.draw_indexed' class="method"><code id='draw_indexed.v'>pub fn <a href='#method.draw_indexed' class='fnname'>draw_indexed</a><V, Gp, S, Pc, Ib, I>(<br> self, <br> pipeline: Gp, <br> dynamic: &<a class="struct" href="../../vulkano/command_buffer/struct.DynamicState.html" title="struct vulkano::command_buffer::DynamicState">DynamicState</a>, <br> vertex_buffer: V, <br> index_buffer: Ib, <br> sets: S, <br> constants: Pc<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.DrawIndexedError.html" title="enum vulkano::command_buffer::DrawIndexedError">DrawIndexedError</a>> <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="../../vulkano/pipeline/vertex/trait.VertexSource.html" title="trait vulkano::pipeline::vertex::VertexSource">VertexSource</a><V> + <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 + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> S: <a class="trait" href="../../vulkano/descriptor/descriptor_set/collection/trait.DescriptorSetsCollection.html" title="trait vulkano::descriptor::descriptor_set::collection::DescriptorSetsCollection">DescriptorSetsCollection</a>,<br> Ib: <a class="trait" href="../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</a> + <a class="trait" href="../../vulkano/buffer/trait.TypedBufferAccess.html" title="trait vulkano::buffer::TypedBufferAccess">TypedBufferAccess</a><Content = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>I<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.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,<br> I: <a class="trait" href="../../vulkano/pipeline/input_assembly/trait.Index.html" title="trait vulkano::pipeline::input_assembly::Index">Index</a> + 'static, </span></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#1033-1087' title='goto source code'>[src]</a></h4><div class='docblock'><p>Draw once, using the <code>vertex_buffer</code> and the <code>index_buffer</code>.</p>
|
|
|
<p>To use only some data in a buffer, wrap it in a <code>vulkano::buffer::BufferSlice</code>.</p>
|
|
|
</div><h4 id='method.draw_indirect' class="method"><code id='draw_indirect.v'>pub fn <a href='#method.draw_indirect' class='fnname'>draw_indirect</a><V, Gp, S, Pc, Ib>(<br> self, <br> pipeline: Gp, <br> dynamic: &<a class="struct" href="../../vulkano/command_buffer/struct.DynamicState.html" title="struct vulkano::command_buffer::DynamicState">DynamicState</a>, <br> vertex_buffer: V, <br> indirect_buffer: Ib, <br> sets: S, <br> constants: Pc<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.DrawIndirectError.html" title="enum vulkano::command_buffer::DrawIndirectError">DrawIndirectError</a>> <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="../../vulkano/pipeline/vertex/trait.VertexSource.html" title="trait vulkano::pipeline::vertex::VertexSource">VertexSource</a><V> + <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 + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> S: <a class="trait" href="../../vulkano/descriptor/descriptor_set/collection/trait.DescriptorSetsCollection.html" title="trait vulkano::descriptor::descriptor_set::collection::DescriptorSetsCollection">DescriptorSetsCollection</a>,<br> Ib: <a class="trait" href="../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</a> + <a class="trait" href="../../vulkano/buffer/trait.TypedBufferAccess.html" title="trait vulkano::buffer::TypedBufferAccess">TypedBufferAccess</a><Content = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a><a class="struct" href="../../vulkano/command_buffer/struct.DrawIndirectCommand.html" title="struct vulkano::command_buffer::DrawIndirectCommand">DrawIndirectCommand</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.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/auto.rs.html#1094-1143' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs multiple draws, one draw for each <code>vulkano::command_buffer::DrawIndirectCommand</code> struct in <code>indirect_buffer</code>.
|
|
|
The <code>vertex_buffer</code> is used by all draws.</p>
|
|
|
<p>To use only some data in a buffer, wrap it in a <code>vulkano::buffer::BufferSlice</code>.</p>
|
|
|
</div><h4 id='method.draw_indexed_indirect' class="method"><code id='draw_indexed_indirect.v'>pub fn <a href='#method.draw_indexed_indirect' class='fnname'>draw_indexed_indirect</a><V, Gp, S, Pc, Ib, Inb, I>(<br> self, <br> pipeline: Gp, <br> dynamic: &<a class="struct" href="../../vulkano/command_buffer/struct.DynamicState.html" title="struct vulkano::command_buffer::DynamicState">DynamicState</a>, <br> vertex_buffer: V, <br> index_buffer: Ib, <br> indirect_buffer: Inb, <br> sets: S, <br> constants: Pc<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.DrawIndexedIndirectError.html" title="enum vulkano::command_buffer::DrawIndexedIndirectError">DrawIndexedIndirectError</a>> <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="../../vulkano/pipeline/vertex/trait.VertexSource.html" title="trait vulkano::pipeline::vertex::VertexSource">VertexSource</a><V> + <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 + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> S: <a class="trait" href="../../vulkano/descriptor/descriptor_set/collection/trait.DescriptorSetsCollection.html" title="trait vulkano::descriptor::descriptor_set::collection::DescriptorSetsCollection">DescriptorSetsCollection</a>,<br> Ib: <a class="trait" href="../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</a> + <a class="trait" href="../../vulkano/buffer/trait.TypedBufferAccess.html" title="trait vulkano::buffer::TypedBufferAccess">TypedBufferAccess</a><Content = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>I<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.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,<br> Inb: <a class="trait" href="../../vulkano/buffer/trait.BufferAccess.html" title="trait vulkano::buffer::BufferAccess">BufferAccess</a> + <a class="trait" href="../../vulkano/buffer/trait.TypedBufferAccess.html" title="trait vulkano::buffer::TypedBufferAccess">TypedBufferAccess</a><Content = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a><a class="struct" href="../../vulkano/command_buffer/struct.DrawIndexedIndirectCommand.html" title="struct vulkano::command_buffer::DrawIndexedIndirectCommand">DrawIndexedIndirectCommand</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.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,<br> I: <a class="trait" href="../../vulkano/pipeline/input_assembly/trait.Index.html" title="trait vulkano::pipeline::input_assembly::Index">Index</a> + 'static, </span></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#1150-1208' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs multiple draws, one draw for each <code>vulkano::command_buffer::DrawIndexedIndirectCommand</code> struct in <code>indirect_buffer</code>.
|
|
|
The <code>index_buffer</code> and <code>vertex_buffer</code> are used by all draws.</p>
|
|
|
<p>To use only some data in a buffer, wrap it in a <code>vulkano::buffer::BufferSlice</code>.</p>
|
|
|
</div><h4 id='method.end_render_pass' class="method"><code id='end_render_pass.v'>pub fn <a href='#method.end_render_pass' class='fnname'>end_render_pass</a>(<br> self<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.AutoCommandBufferBuilderContextError.html" title="enum vulkano::command_buffer::AutoCommandBufferBuilderContextError">AutoCommandBufferBuilderContextError</a>></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#1215-1240' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that ends the current render pass.</p>
|
|
|
<p>This must be called after you went through all the subpasses and before you can build
|
|
|
the command buffer or add further commands.</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><C>(<br> self, <br> command_buffer: C<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.ExecuteCommandsError.html" title="enum vulkano::command_buffer::ExecuteCommandsError">ExecuteCommandsError</a>> <span class="where fmt-newline">where<br> C: <a class="trait" href="../../vulkano/command_buffer/trait.CommandBuffer.html" title="trait vulkano::command_buffer::CommandBuffer">CommandBuffer</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/auto.rs.html#1247-1260' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that executes a secondary command buffer.</p>
|
|
|
<p><strong>This function is unsafe for now because safety checks and synchronization are not
|
|
|
implemented.</strong></p>
|
|
|
</div><h4 id='method.fill_buffer' class="method"><code id='fill_buffer.v'>pub fn <a href='#method.fill_buffer' class='fnname'>fill_buffer</a><B>(<br> self, <br> buffer: B, <br> data: <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><Self, <a class="enum" href="../../vulkano/command_buffer/enum.FillBufferError.html" title="enum vulkano::command_buffer::FillBufferError">FillBufferError</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/auto.rs.html#1273-1282' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that writes the content of a buffer.</p>
|
|
|
<p>This function is similar to the <code>memset</code> function in C. The <code>data</code> parameter is a number
|
|
|
that will be repeatedly written through the entire buffer.</p>
|
|
|
<blockquote>
|
|
|
<p><strong>Note</strong>: This function is technically safe because buffers can only contain integers or
|
|
|
floating point numbers, which are always valid whatever their memory representation is.
|
|
|
But unless your buffer actually contains only 32-bits integers, you are encouraged to use
|
|
|
this function only for zeroing the content of a buffer by passing <code>0</code> for the data.</p>
|
|
|
</blockquote>
|
|
|
</div><h4 id='method.next_subpass' class="method"><code id='next_subpass.v'>pub fn <a href='#method.next_subpass' class='fnname'>next_subpass</a>(<br> self, <br> secondary: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.AutoCommandBufferBuilderContextError.html" title="enum vulkano::command_buffer::AutoCommandBufferBuilderContextError">AutoCommandBufferBuilderContextError</a>></code><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#1286-1321' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that jumps to the next subpass of the current render pass.</p>
|
|
|
</div><h4 id='method.update_buffer' class="method"><code id='update_buffer.v'>pub fn <a href='#method.update_buffer' class='fnname'>update_buffer</a><B, D>(<br> self, <br> buffer: B, <br> data: D<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../vulkano/command_buffer/enum.UpdateBufferError.html" title="enum vulkano::command_buffer::UpdateBufferError">UpdateBufferError</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../vulkano/buffer/trait.TypedBufferAccess.html" title="trait vulkano::buffer::TypedBufferAccess">TypedBufferAccess</a><Content = 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,<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/auto.rs.html#1329-1347' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adds a command that writes data to a buffer.</p>
|
|
|
<p>If <code>data</code> is larger than the buffer, only the part of <code>data</code> that fits is written. If the
|
|
|
buffer is larger than <code>data</code>, only the start of the buffer is written.</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><P></code><a href='#impl-DeviceOwned' class='anchor'></a><a class='srclink' href='../../src/vulkano/command_buffer/auto.rs.html#1350-1355' 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/auto.rs.html#1352-1354' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the device that owns <code>Self</code>.</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="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>> !<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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</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="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>> !<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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</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="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>> !<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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><P></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="struct" href="../../vulkano/command_buffer/pool/standard/struct.StandardCommandPoolBuilder.html" title="struct vulkano::command_buffer::pool::standard::StandardCommandPoolBuilder">StandardCommandPoolBuilder</a>> !<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/struct.AutoCommandBufferBuilder.html" title="struct vulkano::command_buffer::AutoCommandBufferBuilder">AutoCommandBufferBuilder</a><P></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://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>>::<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>, </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">&</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/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<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> |