|
596 | 596 | <a href=#596 id=596 data-nosnippet>596</a> <span class="attr">#[cfg(wgpu_core)]
|
597 | 597 | <a href=#597 id=597 data-nosnippet>597</a> </span>Core(Arc<<span class="macro-nonterminal">$core_type</span>>),
|
598 | 598 | <a href=#598 id=598 data-nosnippet>598</a> <span class="attr">#[cfg(webgpu)]
|
599 |
| -<a href=#599 id=599 data-nosnippet>599</a> </span>WebGPU(Arc<<span class="macro-nonterminal">$webgpu_type</span>>), |
| 599 | +<a href=#599 id=599 data-nosnippet>599</a> </span>WebGPU(<span class="macro-nonterminal">$webgpu_type</span>), |
600 | 600 | <a href=#600 id=600 data-nosnippet>600</a> <span class="attr">#[allow(clippy::allow_attributes, private_interfaces)]
|
601 | 601 | <a href=#601 id=601 data-nosnippet>601</a> #[cfg(custom)]
|
602 | 602 | <a href=#602 id=602 data-nosnippet>602</a> </span>Custom(<span class="macro-nonterminal">$custom_type</span>),
|
|
672 | 672 | <a href=#672 id=672 data-nosnippet>672</a> </span><span class="kw">impl </span>From<<span class="macro-nonterminal">$webgpu_type</span>> <span class="kw">for </span><span class="macro-nonterminal">$name </span>{
|
673 | 673 | <a href=#673 id=673 data-nosnippet>673</a> <span class="attr">#[inline]
|
674 | 674 | <a href=#674 id=674 data-nosnippet>674</a> </span><span class="kw">fn </span>from(value: <span class="macro-nonterminal">$webgpu_type</span>) -> <span class="self">Self </span>{
|
675 |
| -<a href=#675 id=675 data-nosnippet>675</a> <span class="self">Self</span>::WebGPU(Arc::new(value)) |
| 675 | +<a href=#675 id=675 data-nosnippet>675</a> <span class="self">Self</span>::WebGPU(value) |
676 | 676 | <a href=#676 id=676 data-nosnippet>676</a> }
|
677 | 677 | <a href=#677 id=677 data-nosnippet>677</a> }
|
678 | 678 | <a href=#678 id=678 data-nosnippet>678</a>
|
|
685 | 685 | <a href=#685 id=685 data-nosnippet>685</a> <span class="attr">#[cfg(wgpu_core)]
|
686 | 686 | <a href=#686 id=686 data-nosnippet>686</a> </span><span class="self">Self</span>::Core(value) => value.as_ref(),
|
687 | 687 | <a href=#687 id=687 data-nosnippet>687</a> <span class="attr">#[cfg(webgpu)]
|
688 |
| -<a href=#688 id=688 data-nosnippet>688</a> </span><span class="self">Self</span>::WebGPU(value) => value.as_ref(), |
| 688 | +<a href=#688 id=688 data-nosnippet>688</a> </span><span class="self">Self</span>::WebGPU(value) => value, |
689 | 689 | <a href=#689 id=689 data-nosnippet>689</a> <span class="attr">#[cfg(custom)]
|
690 | 690 | <a href=#690 id=690 data-nosnippet>690</a> </span><span class="self">Self</span>::Custom(value) => value.deref(),
|
691 | 691 | <a href=#691 id=691 data-nosnippet>691</a> <span class="attr">#[cfg(not(any(wgpu_core, webgpu)))]
|
|
884 | 884 | <a href=#884 id=884 data-nosnippet>884</a><span class="macro">dispatch_types!</span> {<span class="kw-2">mut </span><span class="kw">type </span>DispatchCommandEncoder: CommandEncoderInterface = CoreCommandEncoder, WebCommandEncoder, DynCommandEncoder}
|
885 | 885 | <a href=#885 id=885 data-nosnippet>885</a><span class="macro">dispatch_types!</span> {<span class="kw-2">mut </span><span class="kw">type </span>DispatchComputePass: ComputePassInterface = CoreComputePass, WebComputePassEncoder, DynComputePass}
|
886 | 886 | <a href=#886 id=886 data-nosnippet>886</a><span class="macro">dispatch_types!</span> {<span class="kw-2">mut </span><span class="kw">type </span>DispatchRenderPass: RenderPassInterface = CoreRenderPass, WebRenderPassEncoder, DynRenderPass}
|
887 |
| -<a href=#887 id=887 data-nosnippet>887</a><span class="macro">dispatch_types!</span> {<span class="kw-2">ref </span><span class="kw">type </span>DispatchCommandBuffer: CommandBufferInterface = CoreCommandBuffer, WebCommandBuffer, DynCommandBuffer} |
| 887 | +<a href=#887 id=887 data-nosnippet>887</a><span class="macro">dispatch_types!</span> {<span class="kw-2">mut </span><span class="kw">type </span>DispatchCommandBuffer: CommandBufferInterface = CoreCommandBuffer, WebCommandBuffer, DynCommandBuffer} |
888 | 888 | <a href=#888 id=888 data-nosnippet>888</a><span class="macro">dispatch_types!</span> {<span class="kw-2">mut </span><span class="kw">type </span>DispatchRenderBundleEncoder: RenderBundleEncoderInterface = CoreRenderBundleEncoder, WebRenderBundleEncoder, DynRenderBundleEncoder}
|
889 | 889 | <a href=#889 id=889 data-nosnippet>889</a><span class="macro">dispatch_types!</span> {<span class="kw-2">ref </span><span class="kw">type </span>DispatchRenderBundle: RenderBundleInterface = CoreRenderBundle, WebRenderBundle, DynRenderBundle}
|
890 | 890 | <a href=#890 id=890 data-nosnippet>890</a><span class="macro">dispatch_types!</span> {<span class="kw-2">ref </span><span class="kw">type </span>DispatchSurface: SurfaceInterface = CoreSurface, WebSurface, DynSurface}
|
|
0 commit comments