diff --git a/vulkano-taskgraph/src/descriptor_set.rs b/vulkano-taskgraph/src/descriptor_set.rs index 64f1e4068a..8376df08d9 100644 --- a/vulkano-taskgraph/src/descriptor_set.rs +++ b/vulkano-taskgraph/src/descriptor_set.rs @@ -837,6 +837,12 @@ impl SamplerId { } } +impl Default for SamplerId { + fn default() -> Self { + Self::INVALID + } +} + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[repr(C)] pub struct SampledImageId { @@ -859,6 +865,12 @@ impl SampledImageId { } } +impl Default for SampledImageId { + fn default() -> Self { + Self::INVALID + } +} + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[repr(C)] pub struct StorageImageId { @@ -881,6 +893,12 @@ impl StorageImageId { } } +impl Default for StorageImageId { + fn default() -> Self { + Self::INVALID + } +} + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[repr(C)] pub struct StorageBufferId { @@ -903,6 +921,12 @@ impl StorageBufferId { } } +impl Default for StorageBufferId { + fn default() -> Self { + Self::INVALID + } +} + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[repr(C)] pub struct AccelerationStructureId { @@ -925,6 +949,12 @@ impl AccelerationStructureId { } } +impl Default for AccelerationStructureId { + fn default() -> Self { + Self::INVALID + } +} + struct GlobalDescriptorSetAllocator { device: Arc, }