Blender  V2.93
GPU_capabilities.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) 2005 Blender Foundation.
17  * All rights reserved.
18  */
19 
28 #pragma once
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 int GPU_max_texture_size(void);
35 int GPU_max_texture_layers(void);
36 int GPU_max_textures(void);
37 int GPU_max_textures_vert(void);
38 int GPU_max_textures_geom(void);
39 int GPU_max_textures_frag(void);
40 
41 int GPU_texture_size_with_limit(int res, bool limit_gl_texture_size);
42 
43 bool GPU_mip_render_workaround(void);
47 bool GPU_crappy_amd_driver(void);
48 
50 
51 bool GPU_mem_stats_supported(void);
52 void GPU_mem_stats_get(int *totalmem, int *freemem);
53 
55 
56 #ifdef __cplusplus
57 }
58 #endif
int GPU_max_textures_vert(void)
bool GPU_shader_image_load_store_support(void)
int GPU_max_texture_size(void)
int GPU_max_textures_frag(void)
bool GPU_depth_blitting_workaround(void)
bool GPU_use_hq_normals_workaround(void)
bool GPU_stereo_quadbuffer_support(void)
int GPU_max_texture_layers(void)
int GPU_max_textures_geom(void)
void GPU_mem_stats_get(int *totalmem, int *freemem)
int GPU_max_textures(void)
int GPU_texture_size_with_limit(int res, bool limit_gl_texture_size)
bool GPU_use_main_context_workaround(void)
bool GPU_crappy_amd_driver(void)
bool GPU_mip_render_workaround(void)
bool GPU_mem_stats_supported(void)