Blender V4.3
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
9#pragma once
10
11#include "GPU_platform.hh"
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};
44 const char *(*extension_get)(int);
45
46 bool mem_stats_support = false;
53
55
56 /* OpenGL related workarounds. */
60 bool broken_amd_driver = false;
64 /* Vulkan related workarounds. */
65
66 /* Metal related workarounds. */
67 /* Minimum per-vertex stride in bytes (For a vertex buffer). */
69};
70
72
73} // namespace blender::gpu
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
GPUCapabilities GCaps