Use static CreateInfos for Overlay-Next shaders using a similar approach to Workbench shader variations. Remove unused infos and shader sources. Remove the `gpu_shader_create_info_get_unfinalized_copy` workaround. Pull Request: https://projects.blender.org/blender/blender/pulls/131514
25 lines
667 B
C++
25 lines
667 B
C++
/* SPDX-FileCopyrightText: 2021 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup gpu
|
|
*
|
|
* Descriptor type used to define shader structure, resources and interfaces.
|
|
*
|
|
* Some rule of thumb:
|
|
* - Do not include anything else than this file in each descriptor file.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "GPU_shader.hh"
|
|
|
|
void gpu_shader_create_info_init();
|
|
void gpu_shader_create_info_exit();
|
|
|
|
bool gpu_shader_create_info_compile(const char *name_starts_with_filter);
|
|
|
|
/** Runtime create infos are not registered in the dictionary and cannot be searched. */
|
|
const GPUShaderCreateInfo *gpu_shader_create_info_get(const char *info_name);
|