diff options
| author | Micha White <botahamec@outlook.com> | 2022-09-18 18:16:19 -0400 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2022-09-18 18:16:19 -0400 |
| commit | cd7d74507fa54d026547b7dda9e1498a81a395b5 (patch) | |
| tree | 7d5435eec9c84dead9cdc36a4ba87dcfe520f5c3 /src/instance.rs | |
| parent | 83295e01008bdf25e03f6b5aa18b93b735a5e326 (diff) | |
An actual instancing API
Diffstat (limited to 'src/instance.rs')
| -rw-r--r-- | src/instance.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/instance.rs b/src/instance.rs index 6de0133..554d02d 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -2,6 +2,9 @@ use std::mem::size_of; use bytemuck::{Pod, Zeroable}; +#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] +pub struct InstanceId(pub(crate) usize); + #[repr(C)] #[derive(Copy, Clone, Debug, PartialEq, Pod, Zeroable)] pub struct Instance { |
