Build the one-plane lane test's descriptors by assignment: TextureDescriptor is non-exhaustive outside its crate
(cherry picked from commit 7d437bdd074340043761bfb9e1109b505e457e4b)
This commit is contained in:
1 parent
41a5354918
commit
5f57fad5c4
1 file changed
+5
-3
@@ -21,9 +21,11 @@ fn a_heap_s_one_plane_ycbcr_texture_metal_lays_no_one_way_is_announced() {
|
||||
let heap = device
|
||||
.new_heap(&HeapDescriptor::new(HeapType::Placement, 64 << 10, options))
|
||||
.unwrap();
|
||||
let texture = |width, height, mipmapped| TextureDescriptor {
|
||||
resource_options: options,
|
||||
..TextureDescriptor::texture_2d(PixelFormat::YCBCR84221P, width, height, mipmapped)
|
||||
let texture = |width, height, mipmapped| {
|
||||
let pf = PixelFormat::YCBCR84221P;
|
||||
let mut descriptor = TextureDescriptor::texture_2d(pf, width, height, mipmapped);
|
||||
descriptor.resource_options = options;
|
||||
descriptor
|
||||
};
|
||||
heap.new_texture_at_offset(&texture(16, 16, false), 0)
|
||||
.unwrap();
|
||||
|
||||
Reference in new issue
Block a user