Blender  V2.93
gpu_select_private.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2014 Blender Foundation.
17  * All rights reserved.
18  */
19 
26 #pragma once
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 /* gpu_select_pick */
33 void gpu_select_pick_begin(uint (*buffer)[4], uint bufsize, const rcti *input, char mode);
34 bool gpu_select_pick_load_id(uint id, bool end);
36 
38 void gpu_select_pick_cache_end(void);
39 bool gpu_select_pick_is_cached(void);
41 
42 /* gpu_select_sample_query */
44  uint (*buffer)[4], uint bufsize, const rcti *input, char mode, int oldhits);
47 
48 #define SELECT_ID_NONE ((uint)0xffffffff)
49 
50 #ifdef __cplusplus
51 }
52 #endif
unsigned int uint
Definition: BLI_sys_types.h:83
bool gpu_select_pick_load_id(uint id, bool end)
bool gpu_select_query_load_id(uint id)
void gpu_select_query_begin(uint(*buffer)[4], uint bufsize, const rcti *input, char mode, int oldhits)
uint gpu_select_query_end(void)
bool gpu_select_pick_is_cached(void)
void gpu_select_pick_begin(uint(*buffer)[4], uint bufsize, const rcti *input, char mode)
void gpu_select_pick_cache_end(void)
uint gpu_select_pick_end(void)
void gpu_select_pick_cache_begin(void)
void gpu_select_pick_cache_load_id(void)
__kernel void ccl_constant KernelData ccl_global void ccl_global char ccl_global int ccl_global char ccl_global unsigned int ccl_global float * buffer