summaryrefslogtreecommitdiff
path: root/opengl-bindings/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-04-17 17:23:23 +0200
committerHampusM <hampus@hampusmat.com>2026-04-17 17:23:23 +0200
commit50fa4f2527bf86ff4864e966b7c3fbed50fab527 (patch)
tree85c003b583c2d91ec418b5c80b4b382ac7c6ae15 /opengl-bindings/src
parent6285d4e72141e714ee319cf616e888fc6868a993 (diff)
feat(opengl-bindings): make buffer::Usage derive Clone & Copy
Diffstat (limited to 'opengl-bindings/src')
-rw-r--r--opengl-bindings/src/buffer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl-bindings/src/buffer.rs b/opengl-bindings/src/buffer.rs
index 7d79d10..6fb3c2f 100644
--- a/opengl-bindings/src/buffer.rs
+++ b/opengl-bindings/src/buffer.rs
@@ -217,7 +217,7 @@ impl<Item: ReprC> Buffer<Item>
}
/// Buffer usage.
-#[derive(Debug)]
+#[derive(Debug, Clone, Copy)]
pub enum Usage
{
/// The buffer data is set only once and used by the GPU at most a few times.