naga_types/spv.rs
1#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Hash)]
2#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
3#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))]
4pub struct BindingInfo {
5 pub descriptor_set: u32,
6 pub binding: u32,
7 /// If the binding is an unsized binding array, this overrides the size.
8 pub binding_array_size: Option<u32>,
9}
10
11// Using `BTreeMap` instead of `HashMap` so that we can hash itself.
12pub type BindingMap = alloc::collections::BTreeMap<crate::ResourceBinding, BindingInfo>;