Blender
V2.93
source
blender
gpu
intern
gpu_capabilities_private.hh
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
* Copyright 2020, Blender Foundation.
17
* All rights reserved.
18
*/
19
24
#pragma once
25
26
#include "
GPU_platform.h
"
27
28
namespace
blender::gpu
{
29
37
struct
GPUCapabilities
{
38
int
max_texture_size
= 0;
39
int
max_texture_layers
= 0;
40
int
max_textures
= 0;
41
int
max_textures_vert
= 0;
42
int
max_textures_geom
= 0;
43
int
max_textures_frag
= 0;
44
bool
mem_stats_support
=
false
;
45
bool
shader_image_load_store_support
=
false
;
46
/* OpenGL related workarounds. */
47
bool
mip_render_workaround
=
false
;
48
bool
depth_blitting_workaround
=
false
;
49
bool
use_main_context_workaround
=
false
;
50
bool
broken_amd_driver
=
false
;
51
bool
use_hq_normals_workaround
=
false
;
52
/* Vulkan related workarounds. */
53
};
54
55
extern
GPUCapabilities
GCaps
;
56
57
}
// namespace blender::gpu
GPU_platform.h
blender::gpu
Definition:
gpu_backend.hh:29
blender::gpu::GCaps
GPUCapabilities GCaps
Definition:
gpu_capabilities.cc:37
blender::gpu::GPUCapabilities
Definition:
gpu_capabilities_private.hh:37
blender::gpu::GPUCapabilities::mip_render_workaround
bool mip_render_workaround
Definition:
gpu_capabilities_private.hh:47
blender::gpu::GPUCapabilities::max_textures_frag
int max_textures_frag
Definition:
gpu_capabilities_private.hh:43
blender::gpu::GPUCapabilities::broken_amd_driver
bool broken_amd_driver
Definition:
gpu_capabilities_private.hh:50
blender::gpu::GPUCapabilities::shader_image_load_store_support
bool shader_image_load_store_support
Definition:
gpu_capabilities_private.hh:45
blender::gpu::GPUCapabilities::max_texture_size
int max_texture_size
Definition:
gpu_capabilities_private.hh:38
blender::gpu::GPUCapabilities::use_main_context_workaround
bool use_main_context_workaround
Definition:
gpu_capabilities_private.hh:49
blender::gpu::GPUCapabilities::depth_blitting_workaround
bool depth_blitting_workaround
Definition:
gpu_capabilities_private.hh:48
blender::gpu::GPUCapabilities::max_texture_layers
int max_texture_layers
Definition:
gpu_capabilities_private.hh:39
blender::gpu::GPUCapabilities::max_textures_geom
int max_textures_geom
Definition:
gpu_capabilities_private.hh:42
blender::gpu::GPUCapabilities::max_textures
int max_textures
Definition:
gpu_capabilities_private.hh:40
blender::gpu::GPUCapabilities::max_textures_vert
int max_textures_vert
Definition:
gpu_capabilities_private.hh:41
blender::gpu::GPUCapabilities::mem_stats_support
bool mem_stats_support
Definition:
gpu_capabilities_private.hh:44
blender::gpu::GPUCapabilities::use_hq_normals_workaround
bool use_hq_normals_workaround
Definition:
gpu_capabilities_private.hh:51
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1