Blender V4.5
gpu_capabilities_private.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2020 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_sys_types.h"
12
13namespace blender::gpu {
14
26 int max_textures = 0;
30 int max_samplers = 0;
31 int max_images = 0;
32 int max_work_group_count[3] = {0, 0, 0};
33 int max_work_group_size[3] = {0, 0, 0};
45 const char *(*extension_get)(int);
46
47 bool mem_stats_support = false;
53
55
56 /* OpenGL related workarounds. */
60 bool broken_amd_driver = false;
65
67
68 /* Vulkan related workarounds. */
70
71 /* Metal related workarounds. */
72 /* Minimum per-vertex stride in bytes (For a vertex buffer). */
74};
75
77
78} // namespace blender::gpu
GPUCapabilities GCaps