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?

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to