Skip to content

Commit 651b04b

Browse files
committed
Deploying to master from @ gfx-rs/wgpu@a851eba 🚀
1 parent 5342792 commit 651b04b

14 files changed

+86
-54
lines changed

doc/search-index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/search.desc/wgpu/wgpu-desc-1-.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/src/wgpu/api/texture.rs.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@
160160
<a href="#159" id="159">159</a>
161161
<a href="#160" id="160">160</a>
162162
<a href="#161" id="161">161</a>
163-
<a href="#162" id="162">162</a></pre></div><pre class="rust"><code><span class="attr">#[cfg(wgpu_core)]
163+
<a href="#162" id="162">162</a>
164+
<a href="#163" id="163">163</a>
165+
<a href="#164" id="164">164</a>
166+
<a href="#165" id="165">165</a></pre></div><pre class="rust"><code><span class="attr">#[cfg(wgpu_core)]
164167
</span><span class="kw">use </span>core::ops::Deref;
165168

166169
<span class="kw">use crate</span>::<span class="kw-2">*</span>;
@@ -232,7 +235,10 @@
232235
</span><span class="kw">pub fn </span>create_view(<span class="kw-2">&amp;</span><span class="self">self</span>, desc: <span class="kw-2">&amp;</span>TextureViewDescriptor&lt;<span class="lifetime">'_</span>&gt;) -&gt; TextureView {
233236
<span class="kw">let </span>view = <span class="self">self</span>.inner.create_view(desc);
234237

235-
TextureView { inner: view }
238+
TextureView {
239+
inner: view,
240+
texture: <span class="self">self</span>.clone(),
241+
}
236242
}
237243

238244
<span class="doccomment">/// Destroy the associated native resources as soon as possible.

doc/src/wgpu/api/texture_view.rs.html

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,16 @@
7474
<a href="#73" id="73">73</a>
7575
<a href="#74" id="74">74</a>
7676
<a href="#75" id="75">75</a>
77-
<a href="#76" id="76">76</a></pre></div><pre class="rust"><code><span class="attr">#[cfg(wgpu_core)]
77+
<a href="#76" id="76">76</a>
78+
<a href="#77" id="77">77</a>
79+
<a href="#78" id="78">78</a>
80+
<a href="#79" id="79">79</a>
81+
<a href="#80" id="80">80</a>
82+
<a href="#81" id="81">81</a>
83+
<a href="#82" id="82">82</a>
84+
<a href="#83" id="83">83</a>
85+
<a href="#84" id="84">84</a>
86+
<a href="#85" id="85">85</a></pre></div><pre class="rust"><code><span class="attr">#[cfg(wgpu_core)]
7887
</span><span class="kw">use </span>core::ops::Deref;
7988

8089
<span class="kw">use crate</span>::<span class="kw-2">*</span>;
@@ -91,13 +100,22 @@
91100
</span><span class="attr">#[derive(Debug, Clone)]
92101
</span><span class="kw">pub struct </span>TextureView {
93102
<span class="kw">pub</span>(<span class="kw">crate</span>) inner: dispatch::DispatchTextureView,
103+
<span class="kw">pub</span>(<span class="kw">crate</span>) texture: Texture,
94104
}
95105
<span class="attr">#[cfg(send_sync)]
96106
</span><span class="macro">static_assertions::assert_impl_all!</span>(TextureView: Send, Sync);
97107

98108
<span class="macro">crate::cmp::impl_eq_ord_hash_proxy!</span>(TextureView =&gt; .inner);
99109

100110
<span class="kw">impl </span>TextureView {
111+
<span class="doccomment">/// Returns the [`Texture`] that this `TextureView` refers to.
112+
///
113+
/// All wgpu resources are refcounted, so you can own the returned [`Texture`]
114+
/// by cloning it.
115+
</span><span class="kw">pub fn </span>texture(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; <span class="kw-2">&amp;</span>Texture {
116+
<span class="kw-2">&amp;</span><span class="self">self</span>.texture
117+
}
118+
101119
<span class="doccomment">/// Get the [`wgpu_hal`] texture view from this `TextureView`.
102120
///
103121
/// Find the Api struct corresponding to the active backend in [`wgpu_hal::api`],

doc/wgpu/api/texture/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!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 `texture` mod in crate `wgpu`."><title>wgpu::api::texture - 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="wgpu" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[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="../../../wgpu/index.html"><img src="https://raw.githubusercontent.com/gfx-rs/wgpu/trunk/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../../wgpu/index.html"><img src="https://raw.githubusercontent.com/gfx-rs/wgpu/trunk/logo.png" alt="logo"></a><h2><a href="../../../wgpu/index.html">wgpu</a><span class="version">25.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module texture</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In wgpu::<wbr>api</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">wgpu</a>::<wbr><a href="../index.html">api</a></span><h1>Module <span>texture</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/wgpu/api/texture.rs.html#1-162">Source</a> </span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Texture.html" title="struct wgpu::api::texture::Texture">Texture</a></div><div class="desc docblock-short">Handle to a texture on the GPU.</div></li></ul><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="type" href="type.TextureDescriptor.html" title="type wgpu::api::texture::TextureDescriptor">Texture<wbr>Descriptor</a></div><div class="desc docblock-short">Describes a <a href="struct.Texture.html" title="struct wgpu::api::texture::Texture"><code>Texture</code></a>.</div></li></ul></section></div></main></body></html>
1+
<!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 `texture` mod in crate `wgpu`."><title>wgpu::api::texture - 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="wgpu" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[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="../../../wgpu/index.html"><img src="https://raw.githubusercontent.com/gfx-rs/wgpu/trunk/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../../wgpu/index.html"><img src="https://raw.githubusercontent.com/gfx-rs/wgpu/trunk/logo.png" alt="logo"></a><h2><a href="../../../wgpu/index.html">wgpu</a><span class="version">25.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module texture</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In wgpu::<wbr>api</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">wgpu</a>::<wbr><a href="../index.html">api</a></span><h1>Module <span>texture</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/wgpu/api/texture.rs.html#1-165">Source</a> </span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Texture.html" title="struct wgpu::api::texture::Texture">Texture</a></div><div class="desc docblock-short">Handle to a texture on the GPU.</div></li></ul><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="type" href="type.TextureDescriptor.html" title="type wgpu::api::texture::TextureDescriptor">Texture<wbr>Descriptor</a></div><div class="desc docblock-short">Describes a <a href="struct.Texture.html" title="struct wgpu::api::texture::Texture"><code>Texture</code></a>.</div></li></ul></section></div></main></body></html>

0 commit comments

Comments
 (0)