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
use descriptor::descriptor::DescriptorDesc;
use descriptor::pipeline_layout::PipelineLayoutDesc;
use descriptor::pipeline_layout::PipelineLayoutDescPcRange;
#[derive(Debug, Copy, Clone)]
pub struct EmptyPipelineDesc;
unsafe impl PipelineLayoutDesc for EmptyPipelineDesc {
#[inline]
fn num_sets(&self) -> usize {
0
}
#[inline]
fn num_bindings_in_set(&self, _: usize) -> Option<usize> {
None
}
#[inline]
fn descriptor(&self, _: usize, _: usize) -> Option<DescriptorDesc> {
None
}
#[inline]
fn num_push_constants_ranges(&self) -> usize {
0
}
#[inline]
fn push_constants_range(&self, _: usize) -> Option<PipelineLayoutDescPcRange> {
None
}
}