|  | 
| 468 | 468 | <a href="#467" id="467">467</a> | 
| 469 | 469 | <a href="#468" id="468">468</a> | 
| 470 | 470 | <a href="#469" id="469">469</a> | 
| 471 |  | -<a href="#470" id="470">470</a></pre></div><pre class="rust"><code><span class="kw">use </span>bytemuck::{Pod, Zeroable}; | 
|  | 471 | +<a href="#470" id="470">470</a> | 
|  | 472 | +<a href="#471" id="471">471</a> | 
|  | 473 | +<a href="#472" id="472">472</a> | 
|  | 474 | +<a href="#473" id="473">473</a> | 
|  | 475 | +<a href="#474" id="474">474</a> | 
|  | 476 | +<a href="#475" id="475">475</a> | 
|  | 477 | +<a href="#476" id="476">476</a> | 
|  | 478 | +<a href="#477" id="477">477</a> | 
|  | 479 | +<a href="#478" id="478">478</a> | 
|  | 480 | +<a href="#479" id="479">479</a> | 
|  | 481 | +<a href="#480" id="480">480</a></pre></div><pre class="rust"><code><span class="kw">use </span>bytemuck::{Pod, Zeroable}; | 
| 472 | 482 | <span class="kw">use </span>std::num::{NonZeroU32, NonZeroU64}; | 
| 473 | 483 | <span class="kw">use </span>wgpu::util::DeviceExt; | 
| 474 | 484 | 
 | 
|  | 
| 898 | 908 |     <span class="kw">crate</span>::framework::run::<Example>(<span class="string">"texture-arrays"</span>); | 
| 899 | 909 | } | 
| 900 | 910 | 
 | 
|  | 911 | +<span class="attr">#[cfg(test)] | 
|  | 912 | +</span><span class="kw">fn </span>test_parameters() -> wgpu_test::TestParameters { | 
|  | 913 | +    wgpu_test::TestParameters::default() | 
|  | 914 | +        <span class="comment">// https://github.com/gfx-rs/wgpu/issues/7287 | 
|  | 915 | +        </span>.expect_fail(wgpu_test::FailureCase::backend_adapter( | 
|  | 916 | +            wgpu::Backends::METAL, | 
|  | 917 | +            <span class="string">"Apple M"</span>, | 
|  | 918 | +        )) | 
|  | 919 | +} | 
|  | 920 | + | 
| 901 | 921 | <span class="attr">#[cfg(test)] | 
| 902 | 922 | #[wgpu_test::gpu_test] | 
| 903 | 923 | </span><span class="kw">static </span>TEST: <span class="kw">crate</span>::framework::ExampleTestParams = <span class="kw">crate</span>::framework::ExampleTestParams { | 
|  | 
| 906 | 926 |     width: <span class="number">1024</span>, | 
| 907 | 927 |     height: <span class="number">768</span>, | 
| 908 | 928 |     optional_features: wgpu::Features::empty(), | 
| 909 |  | -    base_test_parameters: wgpu_test::TestParameters::default(), | 
|  | 929 | +    base_test_parameters: test_parameters(), | 
| 910 | 930 |     comparisons: <span class="kw-2">&</span>[wgpu_test::ComparisonType::Mean(<span class="number">0.0</span>)], | 
| 911 | 931 |     _phantom: std::marker::PhantomData::<Example>, | 
| 912 | 932 | }; | 
|  | 
| 919 | 939 |     width: <span class="number">1024</span>, | 
| 920 | 940 |     height: <span class="number">768</span>, | 
| 921 | 941 |     optional_features: wgpu::Features::empty(), | 
| 922 |  | -    base_test_parameters: wgpu_test::TestParameters::default(), | 
|  | 942 | +    base_test_parameters: test_parameters(), | 
| 923 | 943 |     comparisons: <span class="kw-2">&</span>[wgpu_test::ComparisonType::Mean(<span class="number">0.0</span>)], | 
| 924 | 944 |     _phantom: std::marker::PhantomData::<Example>, | 
| 925 | 945 | }; | 
|  | 
| 934 | 954 |         height: <span class="number">768</span>, | 
| 935 | 955 |         optional_features: | 
| 936 | 956 |             wgpu::Features::SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING, | 
| 937 |  | -        base_test_parameters: wgpu_test::TestParameters::default(), | 
|  | 957 | +        base_test_parameters: test_parameters(), | 
| 938 | 958 |         comparisons: <span class="kw-2">&</span>[wgpu_test::ComparisonType::Mean(<span class="number">0.0</span>)], | 
| 939 | 959 |         _phantom: std::marker::PhantomData::<Example>, | 
| 940 | 960 |     }; | 
|  | 
0 commit comments