Transform: Snap Perpendicular: Avoid snapping to snapTarget
[blender.git] / source / blender / gpu / GPU_select.h
index e1396b49c151f09a7c74d2a68353c7f3725f536d..c15d1b17448643da9a2a2ecf6ec6d03ebbeddcce 100644 (file)
@@ -30,16 +30,17 @@ struct rcti;
 
 /* flags for mode of operation */
 enum {
-       GPU_SELECT_ALL                      = 1,
-       /* gpu_select_query */
-       GPU_SELECT_NEAREST_FIRST_PASS       = 2,
-       GPU_SELECT_NEAREST_SECOND_PASS      = 3,
-       /* gpu_select_pick */
-       GPU_SELECT_PICK_ALL           = 4,
-       GPU_SELECT_PICK_NEAREST       = 5,
+  GPU_SELECT_ALL = 1,
+  /* gpu_select_query */
+  GPU_SELECT_NEAREST_FIRST_PASS = 2,
+  GPU_SELECT_NEAREST_SECOND_PASS = 3,
+  /* gpu_select_pick */
+  GPU_SELECT_PICK_ALL = 4,
+  GPU_SELECT_PICK_NEAREST = 5,
 };
 
-void GPU_select_begin(unsigned int *buffer, unsigned int bufsize, const struct rcti *input, char mode, int oldhits);
+void GPU_select_begin(
+    unsigned int *buffer, unsigned int bufsize, const struct rcti *input, char mode, int oldhits);
 bool GPU_select_load_id(unsigned int id);
 void GPU_select_finalize(void);
 unsigned int GPU_select_end(void);
@@ -52,5 +53,6 @@ void GPU_select_cache_end(void);
 
 /* utilities */
 const uint *GPU_select_buffer_near(const uint *buffer, int hits);
+void GPU_select_buffer_stride_realign(const struct rcti *src, const struct rcti *dst, uint *r_buf);
 
 #endif