Blender V5.0
gpu_testing.hh File Reference
#include "testing/testing.h"
#include "BKE_global.hh"
#include "GHOST_C-api.h"
#include "GPU_platform.hh"

Go to the source code of this file.

Classes

class  blender::gpu::GPUTest

Namespaces

namespace  blender
namespace  blender::gpu

Macros

#define GPU_OPENGL_TEST(test_name)
#define GPU_METAL_TEST(test_name)
#define GPU_VULKAN_TEST(test_name)
#define GPU_TEST(test_name)
#define BLOCK_GPU_TEST_ON(device_type, os_type, driver_type, backend_type)

Macro Definition Documentation

◆ BLOCK_GPU_TEST_ON

#define BLOCK_GPU_TEST_ON ( device_type,
os_type,
driver_type,
backend_type )
Value:
if (!blender::tests::should_ignore_blocklist() && \
GPU_type_matches_ex(device_type, os_type, driver_type, backend_type)) \
{ \
GTEST_SKIP(); \
return; \
}
bool GPU_type_matches_ex(GPUDeviceType device, GPUOSType os, GPUDriverType driver, GPUBackendType backend)

Definition at line 167 of file gpu_testing.hh.

◆ GPU_METAL_TEST

#define GPU_METAL_TEST ( test_name)

Definition at line 117 of file gpu_testing.hh.

◆ GPU_OPENGL_TEST

#define GPU_OPENGL_TEST ( test_name)

Definition at line 78 of file gpu_testing.hh.

◆ GPU_TEST

#define GPU_TEST ( test_name)
Value:
GPU_OPENGL_TEST(test_name) \
GPU_METAL_TEST(test_name) \
GPU_VULKAN_TEST(test_name)
#define GPU_OPENGL_TEST(test_name)

Definition at line 162 of file gpu_testing.hh.

◆ GPU_VULKAN_TEST

#define GPU_VULKAN_TEST ( test_name)

Definition at line 159 of file gpu_testing.hh.