[Bf-blender-cvs] [7dc9e427212] blender2.8: Missing from last commit
Campbell Barton
noreply at git.blender.org
Thu Jun 29 12:26:40 CEST 2017
Commit: 7dc9e427212095cedf00b9ea1da044a2c5b77d01
Author: Campbell Barton
Date: Thu Jun 29 20:33:24 2017 +1000
Branches: blender2.8
https://developer.blender.org/rB7dc9e427212095cedf00b9ea1da044a2c5b77d01
Missing from last commit
===================================================================
M intern/gawain/gawain/vertex_buffer.h
===================================================================
diff --git a/intern/gawain/gawain/vertex_buffer.h b/intern/gawain/gawain/vertex_buffer.h
index 57179062df4..a66154d06e3 100644
--- a/intern/gawain/gawain/vertex_buffer.h
+++ b/intern/gawain/gawain/vertex_buffer.h
@@ -71,8 +71,12 @@ GWN_INLINE void *GWN_vertbuf_raw_step(Gwn_VertBufRaw *a)
return (void *)data;
}
-void GWN_vertbuf_attr_get_raw_data(Gwn_VertBuf*, unsigned a_idx, Gwn_VertBufRaw *access);
+GWN_INLINE unsigned GWN_vertbuf_raw_used(Gwn_VertBufRaw *a)
+ {
+ return ((a->data - a->data_init) / a->stride);
+ }
+void GWN_vertbuf_attr_get_raw_data(Gwn_VertBuf*, unsigned a_idx, Gwn_VertBufRaw *access);
// TODO: decide whether to keep the functions below
// doesn't immediate mode satisfy these needs?
More information about the Bf-blender-cvs
mailing list