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
use crate::{buffer, image};
use std::ops::Range;
#[derive(Clone, Copy, Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct BufferCopy {
pub src: buffer::Offset,
pub dst: buffer::Offset,
pub size: buffer::Offset,
}
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct ImageCopy {
pub src_subresource: image::SubresourceLayers,
pub src_offset: image::Offset,
pub dst_subresource: image::SubresourceLayers,
pub dst_offset: image::Offset,
pub extent: image::Extent,
}
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct BufferImageCopy {
pub buffer_offset: buffer::Offset,
pub buffer_width: u32,
pub buffer_height: u32,
pub image_layers: image::SubresourceLayers,
pub image_offset: image::Offset,
pub image_extent: image::Extent,
}
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct ImageResolve {
pub src_subresource: image::SubresourceLayers,
pub src_offset: image::Offset,
pub dst_subresource: image::SubresourceLayers,
pub dst_offset: image::Offset,
pub extent: image::Extent,
}
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct ImageBlit {
pub src_subresource: image::SubresourceLayers,
pub src_bounds: Range<image::Offset>,
pub dst_subresource: image::SubresourceLayers,
pub dst_bounds: Range<image::Offset>,
}