12 lines
16 KiB
HTML
12 lines
16 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 `ParentDevice` trait in crate `wgpu_core`."><title>ParentDevice in wgpu_core::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="wgpu_core" 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="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 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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../wgpu_core/index.html">wgpu_<wbr>core</a><span class="version">23.0.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Parent<wbr>Device</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.device" title="device">device</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.is_equal" title="is_equal">is_equal</a></li><li><a href="#method.same_device" title="same_device">same_device</a></li><li><a href="#method.same_device_as" title="same_device_as">same_device_as</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In wgpu_<wbr>core::<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">wgpu_core</a>::<wbr><a href="index.html">resource</a></span><h1>Trait <span class="trait">ParentDevice</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_core/resource.rs.html#90-122">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ParentDevice: <a class="trait" href="trait.Labeled.html" title="trait wgpu_core::resource::Labeled">Labeled</a> {
|
|
// Required method
|
|
fn <a href="#tymethod.device" class="fn">device</a>(&self) -> &<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../device/resource/struct.Device.html" title="struct wgpu_core::device::resource::Device">Device</a>>;
|
|
|
|
// Provided methods
|
|
fn <a href="#method.is_equal" class="fn">is_equal</a>(self: &<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><Self>, other: &<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><Self>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.same_device_as" class="fn">same_device_as</a><O: <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a>>(
|
|
&self,
|
|
other: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&O</a>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="enum" href="../device/enum.DeviceError.html" title="enum wgpu_core::device::DeviceError">DeviceError</a>> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.same_device" class="fn">same_device</a>(&self, device: &<a class="struct" href="../device/resource/struct.Device.html" title="struct wgpu_core::device::resource::Device">Device</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="enum" href="../device/enum.DeviceError.html" title="enum wgpu_core::device::DeviceError">DeviceError</a>> { ... }
|
|
}</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.device" class="method"><a class="src rightside" href="../../src/wgpu_core/resource.rs.html#91">Source</a><h4 class="code-header">fn <a href="#tymethod.device" class="fn">device</a>(&self) -> &<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="../device/resource/struct.Device.html" title="struct wgpu_core::device::resource::Device">Device</a>></h4></section></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><section id="method.is_equal" class="method"><a class="src rightside" href="../../src/wgpu_core/resource.rs.html#93-95">Source</a><h4 class="code-header">fn <a href="#method.is_equal" class="fn">is_equal</a>(self: &<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><Self>, other: &<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><Self>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section><section id="method.same_device_as" class="method"><a class="src rightside" href="../../src/wgpu_core/resource.rs.html#97-108">Source</a><h4 class="code-header">fn <a href="#method.same_device_as" class="fn">same_device_as</a><O: <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a>>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&O</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="enum" href="../device/enum.DeviceError.html" title="enum wgpu_core::device::DeviceError">DeviceError</a>></h4></section><section id="method.same_device" class="method"><a class="src rightside" href="../../src/wgpu_core/resource.rs.html#110-121">Source</a><h4 class="code-header">fn <a href="#method.same_device" class="fn">same_device</a>(&self, device: &<a class="struct" href="../device/resource/struct.Device.html" title="struct wgpu_core::device::resource::Device">Device</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="enum" href="../device/enum.DeviceError.html" title="enum wgpu_core::device::DeviceError">DeviceError</a>></h4></section></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.0/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ParentDevice-for-BindGroup" class="impl"><a class="src rightside" href="../../src/wgpu_core/binding_model.rs.html#988">Source</a><a href="#impl-ParentDevice-for-BindGroup" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="../binding_model/struct.BindGroup.html" title="struct wgpu_core::binding_model::BindGroup">BindGroup</a></h3></section><section id="impl-ParentDevice-for-BindGroupLayout" class="impl"><a class="src rightside" href="../../src/wgpu_core/binding_model.rs.html#523">Source</a><a href="#impl-ParentDevice-for-BindGroupLayout" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="../binding_model/struct.BindGroupLayout.html" title="struct wgpu_core::binding_model::BindGroupLayout">BindGroupLayout</a></h3></section><section id="impl-ParentDevice-for-PipelineLayout" class="impl"><a class="src rightside" href="../../src/wgpu_core/binding_model.rs.html#754">Source</a><a href="#impl-ParentDevice-for-PipelineLayout" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="../binding_model/struct.PipelineLayout.html" title="struct wgpu_core::binding_model::PipelineLayout">PipelineLayout</a></h3></section><section id="impl-ParentDevice-for-CommandBuffer" class="impl"><a class="src rightside" href="../../src/wgpu_core/command/mod.rs.html#575">Source</a><a href="#impl-ParentDevice-for-CommandBuffer" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="../command/struct.CommandBuffer.html" title="struct wgpu_core::command::CommandBuffer">CommandBuffer</a></h3></section><section id="impl-ParentDevice-for-RenderBundle" class="impl"><a class="src rightside" href="../../src/wgpu_core/command/bundle.rs.html#1155">Source</a><a href="#impl-ParentDevice-for-RenderBundle" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="../command/struct.RenderBundle.html" title="struct wgpu_core::command::RenderBundle">RenderBundle</a></h3></section><section id="impl-ParentDevice-for-Queue" class="impl"><a class="src rightside" href="../../src/wgpu_core/device/queue.rs.html#65">Source</a><a href="#impl-ParentDevice-for-Queue" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="../device/queue/struct.Queue.html" title="struct wgpu_core::device::queue::Queue">Queue</a></h3></section><section id="impl-ParentDevice-for-ComputePipeline" class="impl"><a class="src rightside" href="../../src/wgpu_core/pipeline.rs.html#264">Source</a><a href="#impl-ParentDevice-for-ComputePipeline" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="../pipeline/struct.ComputePipeline.html" title="struct wgpu_core::pipeline::ComputePipeline">ComputePipeline</a></h3></section><section id="impl-ParentDevice-for-PipelineCache" class="impl"><a class="src rightside" href="../../src/wgpu_core/pipeline.rs.html#308">Source</a><a href="#impl-ParentDevice-for-PipelineCache" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="../pipeline/struct.PipelineCache.html" title="struct wgpu_core::pipeline::PipelineCache">PipelineCache</a></h3></section><section id="impl-ParentDevice-for-RenderPipeline" class="impl"><a class="src rightside" href="../../src/wgpu_core/pipeline.rs.html#604">Source</a><a href="#impl-ParentDevice-for-RenderPipeline" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="../pipeline/struct.RenderPipeline.html" title="struct wgpu_core::pipeline::RenderPipeline">RenderPipeline</a></h3></section><section id="impl-ParentDevice-for-ShaderModule" class="impl"><a class="src rightside" href="../../src/wgpu_core/pipeline.rs.html#69">Source</a><a href="#impl-ParentDevice-for-ShaderModule" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="../pipeline/struct.ShaderModule.html" title="struct wgpu_core::pipeline::ShaderModule">ShaderModule</a></h3></section><section id="impl-ParentDevice-for-Buffer" class="impl"><a class="src rightside" href="../../src/wgpu_core/resource.rs.html#818">Source</a><a href="#impl-ParentDevice-for-Buffer" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="struct.Buffer.html" title="struct wgpu_core::resource::Buffer">Buffer</a></h3></section><section id="impl-ParentDevice-for-QuerySet" class="impl"><a class="src rightside" href="../../src/wgpu_core/resource.rs.html#1879">Source</a><a href="#impl-ParentDevice-for-QuerySet" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="struct.QuerySet.html" title="struct wgpu_core::resource::QuerySet">QuerySet</a></h3></section><section id="impl-ParentDevice-for-Sampler" class="impl"><a class="src rightside" href="../../src/wgpu_core/resource.rs.html#1837">Source</a><a href="#impl-ParentDevice-for-Sampler" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="struct.Sampler.html" title="struct wgpu_core::resource::Sampler">Sampler</a></h3></section><section id="impl-ParentDevice-for-Texture" class="impl"><a class="src rightside" href="../../src/wgpu_core/resource.rs.html#1560">Source</a><a href="#impl-ParentDevice-for-Texture" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="struct.Texture.html" title="struct wgpu_core::resource::Texture">Texture</a></h3></section><section id="impl-ParentDevice-for-TextureView" class="impl"><a class="src rightside" href="../../src/wgpu_core/resource.rs.html#1728">Source</a><a href="#impl-ParentDevice-for-TextureView" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParentDevice.html" title="trait wgpu_core::resource::ParentDevice">ParentDevice</a> for <a class="struct" href="struct.TextureView.html" title="struct wgpu_core::resource::TextureView">TextureView</a></h3></section></div><script src="../../trait.impl/wgpu_core/resource/trait.ParentDevice.js" async></script></section></div></main></body></html> |