1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
use crate::sealed::Sealed;

pub use {
    self::Samples::*,
    crate::{
        access::Access,
        backend::Image,
        encode::Encoder,
        queue::{Ownership, QueueId},
        stage::PipelineStages,
    },
};
use {
    crate::{
        format::{AspectFlags, Format},
        Extent2, Extent3, ImageSize, Offset3,
    },
    std::ops::Range,
};

bitflags::bitflags! {
    /// Flags to specify allowed usages for image.
    #[cfg_attr(feature = "serde-1", derive(serde::Serialize, serde::Deserialize))]
    pub struct ImageUsage: u32 {
        /// Image with this usage flag can be used as source for various transfer operations.
        const TRANSFER_SRC =                0x001;

        /// Image with this usage flag can be used as destination for various transfer operations.
        const TRANSFER_DST =                0x002;

        /// Image with this usage flag can be used as `SampledImage` descriptor.
        const SAMPLED =                     0x004;

        /// Image with this usage flag can be used as `StorageImage` descriptor.
        const STORAGE =                     0x008;

        /// Image with this usage flag can be used as color attachment in render passes.
        const COLOR_ATTACHMENT =            0x010;

        /// Image with this usage flag can be used as depth-stencil attachment in render passes.
        const DEPTH_STENCIL_ATTACHMENT =    0x020;

        /// Image with this usage flag can be used as input attachment in render passes.
        const INPUT_ATTACHMENT =            0x080;
    }
}

impl ImageUsage {
    /// Returns `true` if image with this usage flags can be used as render target, either color or depth.
    pub fn is_render_target(self) -> bool {
        self.intersects(Self::COLOR_ATTACHMENT | Self::DEPTH_STENCIL_ATTACHMENT)
    }

    /// Returns `true` if image with this usage flags can be used as render target, either color or depth,
    /// and no other usage is allowed.
    pub fn is_render_target_only(self) -> bool {
        self.is_render_target()
            && !self.intersects(
                Self::TRANSFER_SRC
                    | Self::TRANSFER_DST
                    | Self::SAMPLED
                    | Self::STORAGE
                    | Self::INPUT_ATTACHMENT,
            )
    }

    /// Returns `true` if no mutable usages allowed.
    /// Content still can be modified through memory mapping.
    pub fn is_read_only(self) -> bool {
        !self.intersects(
            Self::TRANSFER_DST
                | Self::STORAGE
                | Self::COLOR_ATTACHMENT
                | Self::DEPTH_STENCIL_ATTACHMENT,
        )
    }
}

/// Image layout defines how texel are placed in memory.
/// Operations can be used in one or more layouts.
/// User is responsible to insert layout transition commands to ensure
/// that the image is in valid layout for each operation.
/// Pipeline barriers can be used to change layouts.
/// Additionally render pass can change layout of its attachments.
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
#[cfg_attr(feature = "serde-1", derive(serde::Serialize, serde::Deserialize))]
pub enum Layout {
    /// Can be used with all device operations.
    /// Only presentation is not possible in this layout.
    /// Operations may perform slower in this layout.
    General,

    /// Can be used for color attachments.
    ColorAttachmentOptimal,

    /// Can be used for depth-stencil attachments.
    DepthStencilAttachmentOptimal,

    /// Can be used for depth-stencil attachments
    /// without writes.
    DepthStencilReadOnlyOptimal,

    /// Can be used for images accessed from shaders
    /// without writes.
    ShaderReadOnlyOptimal,

    /// Can be used for copy, blit and other transferring operations
    /// on source image.
    TransferSrcOptimal,

    /// Can be used for copy, blit and other transferring operations
    /// on destination image.
    TransferDstOptimal,

    /// Layout for swapchain images presentation.
    /// Should not be used if presentation feature is not enabled.
    Present,
}

impl Default for Layout {
    fn default() -> Self {
        Self::General
    }
}

/// Extent of the image.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde-1", derive(serde::Serialize, serde::Deserialize))]
pub enum ImageExtent {
    /// One dimensional extent.
    D1 {
        /// Width of the image
        width: ImageSize,
    },
    /// Two dimensional extent.
    D2 {
        /// Width of the image
        width: ImageSize,

        /// Height of the image.
        height: ImageSize,
    },
    /// Three dimensional extent.
    D3 {
        /// Width of the image
        width: ImageSize,

        /// Height of the image.
        height: ImageSize,

        /// Depth of the image.
        depth: ImageSize,
    },
}

impl From<Extent2> for ImageExtent {
    fn from(extent: Extent2) -> Self {
        ImageExtent::D2 {
            width: extent.width,
            height: extent.height,
        }
    }
}

impl From<Extent3> for ImageExtent {
    fn from(extent: Extent3) -> Self {
        ImageExtent::D3 {
            width: extent.width,
            height: extent.height,
            depth: extent.depth,
        }
    }
}

impl ImageExtent {
    /// Convert image extent (1,2 or 3 dimensional) into 3 dimensional extent.
    /// If image doesn't have `height` or `depth`  they are set to 1.
    pub fn into_3d(self) -> Extent3 {
        match self {
            Self::D1 { width } => Extent3::new(width, 1, 1),
            Self::D2 { width, height } => Extent3::new(width, height, 1),
            Self::D3 {
                width,
                height,
                depth,
            } => Extent3::new(width, height, depth),
        }
    }

    /// Convert image extent (1,2 or 3 dimensional) into 2 dimensional extent.
    /// If image doesn't have `height` it is set to 1.
    /// `depth` is ignored.
    pub fn into_2d(self) -> Extent2 {
        match self {
            Self::D1 { width } => Extent2::new(width, 1),
            Self::D2 { width, height } => Extent2::new(width, height),
            Self::D3 { width, height, .. } => Extent2::new(width, height),
        }
    }
}

impl PartialEq<Extent2> for ImageExtent {
    fn eq(&self, rhs: &Extent2) -> bool {
        match self {
            ImageExtent::D2 { width, height } => *width == rhs.width && *height == rhs.height,
            _ => false,
        }
    }
}

impl PartialEq<Extent3> for ImageExtent {
    fn eq(&self, rhs: &Extent3) -> bool {
        match self {
            ImageExtent::D3 {
                width,
                height,
                depth,
            } => *width == rhs.width && *height == rhs.height && *depth == rhs.depth,
            _ => false,
        }
    }
}

impl PartialEq<ImageExtent> for Extent2 {
    fn eq(&self, rhs: &ImageExtent) -> bool {
        match rhs {
            ImageExtent::D2 { width, height } => self.width == *width && self.height == *height,
            _ => false,
        }
    }
}

impl PartialEq<ImageExtent> for Extent3 {
    fn eq(&self, rhs: &ImageExtent) -> bool {
        match rhs {
            ImageExtent::D3 {
                width,
                height,
                depth,
            } => self.width == *width && self.height == *height && self.depth == *depth,
            _ => false,
        }
    }
}

/// Number of samples for an image.
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
#[cfg_attr(feature = "serde-1", derive(serde::Serialize, serde::Deserialize))]
pub enum Samples {
    /// 1 sample.
    Samples1,
    /// 2 samples.
    Samples2,
    /// 4 samples.
    Samples4,
    /// 8 samples.
    Samples8,
    /// 16 samples.
    Samples16,
    /// 32 samples.
    Samples32,
    /// 64 samples.
    Samples64,
}

impl Default for Samples {
    fn default() -> Self {
        Samples::Samples1
    }
}

/// Information required to create an image.
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
#[cfg_attr(feature = "serde-1", derive(serde::Serialize, serde::Deserialize))]
pub struct ImageInfo {
    /// Dimensionality and size of those dimensions.
    pub extent: ImageExtent,

    /// Format for image texels.
    pub format: Format,

    /// Number of MIP levels.
    pub levels: u32,

    /// Number of array layers.
    pub layers: u32,

    /// Number of samples per texel.
    pub samples: Samples,

    /// Usage types supported by image.
    pub usage: ImageUsage,
}
/// Subresorce range of the image.
/// Used to create `ImageView`s.
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
#[cfg_attr(feature = "serde-1", derive(serde::Serialize, serde::Deserialize))]
pub struct SubresourceRange {
    pub aspect: AspectFlags,
    pub first_level: u32,
    pub level_count: u32,
    pub first_layer: u32,
    pub layer_count: u32,
}

impl SubresourceRange {
    pub fn new(aspect: AspectFlags, levels: Range<u32>, layers: Range<u32>) -> Self {
        assert!(levels.end >= levels.start);

        assert!(layers.end >= layers.start);

        SubresourceRange {
            aspect,
            first_level: levels.start,
            level_count: levels.end - levels.start,
            first_layer: layers.start,
            layer_count: layers.end - layers.start,
        }
    }

    pub fn subresource(subresource: Subresource) -> Self {
        SubresourceRange {
            aspect: subresource.aspect,
            first_level: subresource.level,
            level_count: 1,
            first_layer: subresource.layer,
            layer_count: 1,
        }
    }

    pub fn layers(layers: SubresourceLayers) -> Self {
        SubresourceRange {
            aspect: layers.aspect,
            first_level: layers.level,
            level_count: 1,
            first_layer: layers.first_layer,
            layer_count: layers.layer_count,
        }
    }

    pub fn whole(info: &ImageInfo) -> Self {
        SubresourceRange {
            aspect: info.format.aspect_flags(),
            first_level: 0,
            level_count: info.levels,
            first_layer: 0,
            layer_count: info.layers,
        }
    }

    pub fn color(levels: Range<u32>, layers: Range<u32>) -> Self {
        Self::new(AspectFlags::COLOR, levels, layers)
    }

    pub fn depth(levels: Range<u32>, layers: Range<u32>) -> Self {
        Self::new(AspectFlags::DEPTH, levels, layers)
    }

    pub fn stencil(levels: Range<u32>, layers: Range<u32>) -> Self {
        Self::new(AspectFlags::STENCIL, levels, layers)
    }

    pub fn depth_stencil(levels: Range<u32>, layers: Range<u32>) -> Self {
        Self::new(AspectFlags::DEPTH | AspectFlags::STENCIL, levels, layers)
    }
}

/// Subresorce layers of the image.
/// Unlike `SubresourceRange` it specifies only single mip-level.
/// Used in image copy operations.
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
#[cfg_attr(feature = "serde-1", derive(serde::Serialize, serde::Deserialize))]
pub struct SubresourceLayers {
    pub aspect: AspectFlags,
    pub level: u32,
    pub first_layer: u32,
    pub layer_count: u32,
}

impl SubresourceLayers {
    pub fn new(aspect: AspectFlags, level: u32, layers: Range<u32>) -> Self {
        assert!(layers.end >= layers.start);

        SubresourceLayers {
            aspect,
            level,
            first_layer: layers.start,
            layer_count: layers.end - layers.start,
        }
    }

    pub fn subresource(subresource: Subresource) -> Self {
        SubresourceLayers {
            aspect: subresource.aspect,
            level: subresource.level,
            first_layer: subresource.layer,
            layer_count: 1,
        }
    }

    pub fn all_layers(info: &ImageInfo, level: u32) -> Self {
        assert!(level < info.levels);

        SubresourceLayers {
            aspect: info.format.aspect_flags(),
            level,
            first_layer: 0,
            layer_count: info.layers,
        }
    }

    pub fn color(level: u32, layers: Range<u32>) -> Self {
        Self::new(AspectFlags::COLOR, level, layers)
    }

    pub fn depth(level: u32, layers: Range<u32>) -> Self {
        Self::new(AspectFlags::DEPTH, level, layers)
    }

    pub fn stencil(level: u32, layers: Range<u32>) -> Self {
        Self::new(AspectFlags::STENCIL, level, layers)
    }

    pub fn depth_stencil(level: u32, layers: Range<u32>) -> Self {
        Self::new(AspectFlags::DEPTH | AspectFlags::STENCIL, level, layers)
    }
}

impl From<SubresourceLayers> for SubresourceRange {
    fn from(layers: SubresourceLayers) -> Self {
        SubresourceRange::layers(layers)
    }
}

/// Subresorce of the image.
/// Unlike `SubresourceRange` it specifies only single mip-level and single
/// array layer.
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
#[cfg_attr(feature = "serde-1", derive(serde::Serialize, serde::Deserialize))]
pub struct Subresource {
    pub aspect: AspectFlags,
    pub level: u32,
    pub layer: u32,
}

impl Subresource {
    pub fn new(aspect: AspectFlags, level: u32, layer: u32) -> Self {
        Subresource {
            aspect,
            level,
            layer,
        }
    }

    pub fn from_info(info: &ImageInfo, level: u32, layer: u32) -> Self {
        assert!(level < info.levels);

        assert!(layer < info.layers);

        Subresource {
            aspect: info.format.aspect_flags(),
            level,
            layer,
        }
    }

    pub fn color(level: u32, layer: u32) -> Self {
        Self::new(AspectFlags::COLOR, level, layer)
    }

    pub fn depth(level: u32, layer: u32) -> Self {
        Self::new(AspectFlags::DEPTH, level, layer)
    }

    pub fn stencil(level: u32, layer: u32) -> Self {
        Self::new(AspectFlags::STENCIL, level, layer)
    }

    pub fn depth_stencil(level: u32, layer: u32) -> Self {
        Self::new(AspectFlags::DEPTH | AspectFlags::STENCIL, level, layer)
    }
}

impl From<Subresource> for SubresourceLayers {
    fn from(subresource: Subresource) -> Self {
        SubresourceLayers::subresource(subresource)
    }
}

impl From<Subresource> for SubresourceRange {
    fn from(subresource: Subresource) -> Self {
        SubresourceRange::subresource(subresource)
    }
}

#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
#[cfg_attr(feature = "serde-1", derive(serde::Serialize, serde::Deserialize))]
pub struct ImageBlit {
    pub src_subresource: SubresourceLayers,
    pub src_offsets: [Offset3; 2],
    pub dst_subresource: SubresourceLayers,
    pub dst_offsets: [Offset3; 2],
}

#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
pub struct LayoutTransition<'a> {
    pub image: &'a Image,
    pub old_access: Access,
    pub old_layout: Option<Layout>,
    pub new_access: Access,
    pub new_layout: Layout,
    pub range: SubresourceRange,
}

#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
pub struct ImageMemoryBarrier<'a> {
    pub image: &'a Image,
    pub old_access: Access,
    pub old_layout: Option<Layout>,
    pub new_access: Access,
    pub new_layout: Layout,
    pub family_transfer: Option<(u32, u32)>,
    pub range: SubresourceRange,
}

impl<'a> ImageMemoryBarrier<'a> {
    pub fn transition_whole(
        image: &'a Image,
        access: Range<Access>,
        layout: Range<Layout>,
    ) -> Self {
        ImageMemoryBarrier {
            range: SubresourceRange::whole(image.info()),
            image,
            old_access: access.start,
            new_access: access.end,
            old_layout: Some(layout.start),
            new_layout: layout.end,
            family_transfer: None,
        }
    }

    pub fn initialize_whole(image: &'a Image, access: Access, layout: Layout) -> Self {
        ImageMemoryBarrier {
            range: SubresourceRange::whole(image.info()),
            image,
            old_access: Access::empty(),
            old_layout: None,
            new_access: access,
            new_layout: layout,
            family_transfer: None,
        }
    }
}

impl<'a> From<LayoutTransition<'a>> for ImageMemoryBarrier<'a> {
    fn from(value: LayoutTransition<'a>) -> Self {
        ImageMemoryBarrier {
            image: value.image,
            old_access: value.old_access,
            old_layout: value.old_layout,
            new_access: value.new_access,
            new_layout: value.new_layout,
            family_transfer: None,
            range: value.range,
        }
    }
}

#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct ImageSubresourceRange {
    pub image: Image,
    pub range: SubresourceRange,
}

/// Image region with access mask,
/// specifying how it may be accessed "before".
///
/// Note that "before" is loosely defined,
/// as whatever previous owners do.
/// Which should be translated to "earlier GPU operations"
/// but this crate doesn't attempt to enforce that.
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct ImageSubresourceState {
    pub subresource: ImageSubresourceRange,
    pub access: Access,
    pub stages: PipelineStages,
    pub layout: Option<Layout>,
    pub family: Ownership,
}

impl ImageSubresourceState {
    ///
    pub fn access<'a>(
        &'a mut self,
        access: Access,
        stages: PipelineStages,
        layout: Layout,
        queue: QueueId,
        encoder: &mut Encoder<'a>,
    ) -> &'a Self {
        match self.family {
            Ownership::NotOwned => encoder.image_barriers(
                self.stages,
                stages,
                encoder.scope().to_scope([ImageMemoryBarrier {
                    image: &self.subresource.image,
                    old_access: self.access,
                    new_access: access,
                    old_layout: self.layout,
                    new_layout: layout,
                    family_transfer: None,
                    range: self.subresource.range,
                }]),
            ),
            Ownership::Owned { family } => {
                assert_eq!(family, queue.family, "Wrong queue family owns the buffer");

                encoder.image_barriers(
                    self.stages,
                    stages,
                    encoder.scope().to_scope([ImageMemoryBarrier {
                        image: &self.subresource.image,
                        old_access: self.access,
                        new_access: access,
                        old_layout: self.layout,
                        new_layout: layout,
                        family_transfer: None,
                        range: self.subresource.range,
                    }]),
                )
            }
            Ownership::Transition { from, to } => {
                assert_eq!(
                    to, queue.family,
                    "Image is being transitioned to wrong queue family"
                );

                encoder.image_barriers(
                    self.stages,
                    stages,
                    encoder.scope().to_scope([ImageMemoryBarrier {
                        image: &self.subresource.image,
                        old_access: self.access,
                        new_access: access,
                        old_layout: self.layout,
                        new_layout: layout,
                        family_transfer: Some((from, to)),
                        range: self.subresource.range,
                    }]),
                )
            }
        }
        self.stages = stages;
        self.access = access;
        self.layout = Some(layout);
        self
    }

    ///
    pub fn overwrite<'a>(
        &'a mut self,
        access: Access,
        stages: PipelineStages,
        layout: Layout,
        queue: QueueId,
        encoder: &mut Encoder<'a>,
    ) -> &'a ImageSubresourceRange {
        encoder.image_barriers(
            self.stages,
            stages,
            encoder.scope().to_scope([ImageMemoryBarrier {
                image: &self.subresource.image,
                old_access: Access::empty(),
                new_access: access,
                old_layout: None,
                new_layout: layout,
                family_transfer: None,
                range: self.subresource.range,
            }]),
        );
        self.family = Ownership::Owned {
            family: queue.family,
        };
        self.stages = stages;
        self.access = access;
        self.layout = Some(layout);
        &self.subresource
    }
}

#[derive(Copy, Clone, Debug)]
pub enum ColorAttachmentOptimal {}

#[derive(Copy, Clone, Debug)]
pub enum DepthStencilAttachmentOptimal {}

#[derive(Copy, Clone, Debug)]
pub enum DepthStencilReadOnlyOptimal {}

#[derive(Copy, Clone, Debug)]
pub enum ShaderReadOnlyOptimal {}

#[derive(Copy, Clone, Debug)]
pub enum TransferSrcOptimal {}

#[derive(Copy, Clone, Debug)]
pub enum TransferDstOptimal {}

#[derive(Copy, Clone, Debug)]
pub enum Present {}

#[derive(Copy, Clone, Debug)]
pub enum General {}

pub trait StaticLayout {
    const LAYOUT: Layout;
}

impl StaticLayout for ColorAttachmentOptimal {
    const LAYOUT: Layout = Layout::ColorAttachmentOptimal;
}
impl StaticLayout for DepthStencilAttachmentOptimal {
    const LAYOUT: Layout = Layout::DepthStencilAttachmentOptimal;
}
impl StaticLayout for DepthStencilReadOnlyOptimal {
    const LAYOUT: Layout = Layout::DepthStencilReadOnlyOptimal;
}
impl StaticLayout for ShaderReadOnlyOptimal {
    const LAYOUT: Layout = Layout::ShaderReadOnlyOptimal;
}
impl StaticLayout for TransferSrcOptimal {
    const LAYOUT: Layout = Layout::TransferSrcOptimal;
}
impl StaticLayout for TransferDstOptimal {
    const LAYOUT: Layout = Layout::TransferDstOptimal;
}
impl StaticLayout for Present {
    const LAYOUT: Layout = Layout::Present;
}
impl StaticLayout for General {
    const LAYOUT: Layout = Layout::General;
}

impl Sealed for (Image, Layout) {}