From cd7d74507fa54d026547b7dda9e1498a81a395b5 Mon Sep 17 00:00:00 2001 From: Micha White Date: Sun, 18 Sep 2022 18:16:19 -0400 Subject: An actual instancing API --- src/instance.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/instance.rs') 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 { -- cgit v1.2.3