Files
phy/bevy_render/render_resource/trait.IntoBinding.html
Orion Kindel 0ce894e6b0 doc
2025-03-18 10:30:23 -05:00

4 lines
12 KiB
HTML

<!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 `IntoBinding` trait in crate `bevy_render`."><title>IntoBinding in bevy_render::render_resource - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="bevy_render" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="icon" href="https://bevyengine.org/assets/icon.png"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../bevy_render/index.html"><img src="https://bevyengine.org/assets/icon.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../bevy_render/index.html"><img src="https://bevyengine.org/assets/icon.png" alt="logo"></a><h2><a href="../../bevy_render/index.html">bevy_<wbr>render</a><span class="version">0.15.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Into<wbr>Binding</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.into_binding" title="into_binding">into_binding</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-IntoBinding%3C'a%3E-for-%26%5B%26TextureView%5D" title="&#38;&#39;a [&#38;&#39;a TextureView]">&#38;&#39;a [&#38;&#39;a TextureView]</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In bevy_<wbr>render::<wbr>render_<wbr>resource</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">bevy_render</a>::<wbr><a href="index.html">render_resource</a></span><h1>Trait <span class="trait">IntoBinding</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/bevy_render/render_resource/bind_group_entries.rs.html#139-141">Source</a> </span></div><pre class="rust item-decl"><code>pub trait IntoBinding&lt;'a&gt; {
// Required method
fn <a href="#tymethod.into_binding" class="fn">into_binding</a>(self) -&gt; <a class="enum" href="enum.BindingResource.html" title="enum bevy_render::render_resource::BindingResource">BindingResource</a>&lt;'a&gt;;
}</code></pre><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.into_binding" class="method"><a class="src rightside" href="../../src/bevy_render/render_resource/bind_group_entries.rs.html#140">Source</a><h4 class="code-header">fn <a href="#tymethod.into_binding" class="fn">into_binding</a>(self) -&gt; <a class="enum" href="enum.BindingResource.html" title="enum bevy_render::render_resource::BindingResource">BindingResource</a>&lt;'a&gt;</h4></section></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-IntoBinding%3C'a%3E-for-%26%5B%26TextureView%5D" class="impl"><a class="src rightside" href="../../src/bevy_render/render_resource/bind_group_entries.rs.html#150-155">Source</a><a href="#impl-IntoBinding%3C'a%3E-for-%26%5B%26TextureView%5D" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.IntoBinding.html" title="trait bevy_render::render_resource::IntoBinding">IntoBinding</a>&lt;'a&gt; for &amp;'a [&amp;'a <a class="struct" href="../../wgpu/api/texture_view/struct.TextureView.html" title="struct wgpu::api::texture_view::TextureView">TextureView</a>]</h3></section></summary><div class="impl-items"><section id="method.into_binding" class="method trait-impl"><a class="src rightside" href="../../src/bevy_render/render_resource/bind_group_entries.rs.html#152-154">Source</a><a href="#method.into_binding" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.into_binding" class="fn">into_binding</a>(self) -&gt; <a class="enum" href="enum.BindingResource.html" title="enum bevy_render::render_resource::BindingResource">BindingResource</a>&lt;'a&gt;</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-IntoBinding%3C'a%3E-for-%26Sampler" class="impl"><a class="src rightside" href="../../src/bevy_render/render_resource/bind_group_entries.rs.html#157-162">Source</a><a href="#impl-IntoBinding%3C'a%3E-for-%26Sampler" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.IntoBinding.html" title="trait bevy_render::render_resource::IntoBinding">IntoBinding</a>&lt;'a&gt; for &amp;'a <a class="struct" href="struct.Sampler.html" title="struct bevy_render::render_resource::Sampler">Sampler</a></h3></section><section id="impl-IntoBinding%3C'a%3E-for-%26TextureView" class="impl"><a class="src rightside" href="../../src/bevy_render/render_resource/bind_group_entries.rs.html#143-148">Source</a><a href="#impl-IntoBinding%3C'a%3E-for-%26TextureView" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.IntoBinding.html" title="trait bevy_render::render_resource::IntoBinding">IntoBinding</a>&lt;'a&gt; for &amp;'a <a class="struct" href="struct.TextureView.html" title="struct bevy_render::render_resource::TextureView">TextureView</a></h3></section><section id="impl-IntoBinding%3C'a%3E-for-BindingResource%3C'a%3E" class="impl"><a class="src rightside" href="../../src/bevy_render/render_resource/bind_group_entries.rs.html#164-169">Source</a><a href="#impl-IntoBinding%3C'a%3E-for-BindingResource%3C'a%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.IntoBinding.html" title="trait bevy_render::render_resource::IntoBinding">IntoBinding</a>&lt;'a&gt; for <a class="enum" href="enum.BindingResource.html" title="enum bevy_render::render_resource::BindingResource">BindingResource</a>&lt;'a&gt;</h3></section><section id="impl-IntoBinding%3C'a%3E-for-BufferBinding%3C'a%3E" class="impl"><a class="src rightside" href="../../src/bevy_render/render_resource/bind_group_entries.rs.html#171-176">Source</a><a href="#impl-IntoBinding%3C'a%3E-for-BufferBinding%3C'a%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.IntoBinding.html" title="trait bevy_render::render_resource::IntoBinding">IntoBinding</a>&lt;'a&gt; for <a class="struct" href="struct.BufferBinding.html" title="struct bevy_render::render_resource::BufferBinding">BufferBinding</a>&lt;'a&gt;</h3></section><section id="impl-IntoBinding%3C'a%3E-for-%26DynamicStorageBuffer%3CT%3E" class="impl"><a class="src rightside" href="../../src/bevy_render/render_resource/storage_buffer.rs.html#280-285">Source</a><a href="#impl-IntoBinding%3C'a%3E-for-%26DynamicStorageBuffer%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T: <a class="trait" href="trait.ShaderType.html" title="trait bevy_render::render_resource::ShaderType">ShaderType</a> + <a class="trait" href="encase/internal/trait.WriteInto.html" title="trait bevy_render::render_resource::encase::internal::WriteInto">WriteInto</a>&gt; <a class="trait" href="trait.IntoBinding.html" title="trait bevy_render::render_resource::IntoBinding">IntoBinding</a>&lt;'a&gt; for &amp;'a <a class="struct" href="struct.DynamicStorageBuffer.html" title="struct bevy_render::render_resource::DynamicStorageBuffer">DynamicStorageBuffer</a>&lt;T&gt;</h3></section><section id="impl-IntoBinding%3C'a%3E-for-%26DynamicUniformBuffer%3CT%3E" class="impl"><a class="src rightside" href="../../src/bevy_render/render_resource/uniform_buffer.rs.html#398-403">Source</a><a href="#impl-IntoBinding%3C'a%3E-for-%26DynamicUniformBuffer%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T: <a class="trait" href="trait.ShaderType.html" title="trait bevy_render::render_resource::ShaderType">ShaderType</a> + <a class="trait" href="encase/internal/trait.WriteInto.html" title="trait bevy_render::render_resource::encase::internal::WriteInto">WriteInto</a>&gt; <a class="trait" href="trait.IntoBinding.html" title="trait bevy_render::render_resource::IntoBinding">IntoBinding</a>&lt;'a&gt; for &amp;'a <a class="struct" href="struct.DynamicUniformBuffer.html" title="struct bevy_render::render_resource::DynamicUniformBuffer">DynamicUniformBuffer</a>&lt;T&gt;</h3></section><section id="impl-IntoBinding%3C'a%3E-for-%26StorageBuffer%3CT%3E" class="impl"><a class="src rightside" href="../../src/bevy_render/render_resource/storage_buffer.rs.html#150-155">Source</a><a href="#impl-IntoBinding%3C'a%3E-for-%26StorageBuffer%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T: <a class="trait" href="trait.ShaderType.html" title="trait bevy_render::render_resource::ShaderType">ShaderType</a> + <a class="trait" href="encase/internal/trait.WriteInto.html" title="trait bevy_render::render_resource::encase::internal::WriteInto">WriteInto</a>&gt; <a class="trait" href="trait.IntoBinding.html" title="trait bevy_render::render_resource::IntoBinding">IntoBinding</a>&lt;'a&gt; for &amp;'a <a class="struct" href="struct.StorageBuffer.html" title="struct bevy_render::render_resource::StorageBuffer">StorageBuffer</a>&lt;T&gt;</h3></section><section id="impl-IntoBinding%3C'a%3E-for-%26UniformBuffer%3CT%3E" class="impl"><a class="src rightside" href="../../src/bevy_render/render_resource/uniform_buffer.rs.html#145-153">Source</a><a href="#impl-IntoBinding%3C'a%3E-for-%26UniformBuffer%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T: <a class="trait" href="trait.ShaderType.html" title="trait bevy_render::render_resource::ShaderType">ShaderType</a> + <a class="trait" href="encase/internal/trait.WriteInto.html" title="trait bevy_render::render_resource::encase::internal::WriteInto">WriteInto</a>&gt; <a class="trait" href="trait.IntoBinding.html" title="trait bevy_render::render_resource::IntoBinding">IntoBinding</a>&lt;'a&gt; for &amp;'a <a class="struct" href="struct.UniformBuffer.html" title="struct bevy_render::render_resource::UniformBuffer">UniformBuffer</a>&lt;T&gt;</h3></section></div><script src="../../trait.impl/bevy_render/render_resource/bind_group_entries/trait.IntoBinding.js" data-ignore-extern-crates="std,wgpu" async></script></section></div></main></body></html>