This PR enables shader validation testing on buildbot for Metal. OpenGL isn't enabled as OpenGL requires an actual driver and GPU attached to the build bot infrastructure. Also the OpenGL backend caches data (glsl_patch) globally and requires a restart in order to create the correct one. Vulkan isn't enabled as it requires some changes: * For windows it requires to install more recent vulkan software versions as part of the buildbot windows configuration * For Linux it requires to start a GHOST System without any X11/Wayland This currently fails on the buildbot. We should check if we can use `GHOST_SystemHeadless` with `GHOST_ContextVK` Each shaders are compiled twice. Once based on the actual features of the installed GPU/backend. And once with all the work-arounds enabled, simulating a platform close to the minimum requirements of Blender. Pull Request: https://projects.blender.org/blender/blender/pulls/116040
22 lines
440 B
C++
22 lines
440 B
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
#include "testing/testing.h"
|
|
|
|
#include "gpu_shader_create_info_private.hh"
|
|
#include "gpu_testing.hh"
|
|
|
|
namespace blender::gpu::tests {
|
|
|
|
/**
|
|
* Test if all static shaders can be compiled.
|
|
*/
|
|
static void test_static_shaders()
|
|
{
|
|
EXPECT_TRUE(gpu_shader_create_info_compile(nullptr));
|
|
}
|
|
GPU_TEST(static_shaders)
|
|
|
|
} // namespace blender::gpu::tests
|