Blender V5.0
gpu_shader_create_info.cc File Reference
#include "BLI_map.hh"
#include "BLI_set.hh"
#include "BLI_string_ref.hh"
#include "BKE_global.hh"
#include "GPU_capabilities.hh"
#include "GPU_context.hh"
#include "GPU_platform.hh"
#include "GPU_shader.hh"
#include "gpu_shader_create_info.hh"
#include "gpu_shader_create_info_private.hh"
#include "gpu_shader_dependency_private.hh"
#include "glsl_compositor_infos_list.hh"
#include "glsl_draw_infos_list.hh"
#include "glsl_gpu_infos_list.hh"
#include "glsl_ocio_infos_list.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::gpu
namespace  blender::gpu::shader

Macros

#define GPU_SHADER_NAMED_INTERFACE_INFO(_interface, _inst_name)
#define GPU_SHADER_INTERFACE_INFO(_interface)
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_NAMED_INTERFACE_END(_inst_name)
#define GPU_SHADER_INTERFACE_END()
#define GPU_SHADER_CREATE_END()

Typedefs

using blender::gpu::shader::CreateInfoDictionary = Map<StringRef, ShaderCreateInfo *>
using blender::gpu::shader::InterfaceDictionary = Map<StringRef, StageInterfaceInfo *>

Functions

void gpu_shader_create_info_init ()
void gpu_shader_create_info_exit ()
bool gpu_shader_create_info_compile (const char *name_starts_with_filter)
const GPUShaderCreateInfo * gpu_shader_create_info_get (const char *info_name)
Check Backend Support
static bool blender::gpu::shader::is_vulkan_compatible_interface (const StageInterfaceInfo &iface)

Variables

static CreateInfoDictionaryblender::gpu::shader::g_create_infos = nullptr
static InterfaceDictionaryblender::gpu::shader::g_interfaces = nullptr

Detailed Description

Descriptor type used to define shader structure, resources and interfaces.

Definition in file gpu_shader_create_info.cc.

Macro Definition Documentation

◆ GPU_SHADER_CREATE_END

◆ GPU_SHADER_CREATE_INFO

◆ GPU_SHADER_INTERFACE_END

#define GPU_SHADER_INTERFACE_END ( )
Value:
;

◆ GPU_SHADER_INTERFACE_INFO

#define GPU_SHADER_INTERFACE_INFO ( _interface)
Value:
StageInterfaceInfo *ptr_##_interface = new StageInterfaceInfo(#_interface); \
StageInterfaceInfo &_interface = *ptr_##_interface; \
g_interfaces->add_new(#_interface, ptr_##_interface); \
_interface
static InterfaceDictionary * g_interfaces

◆ GPU_SHADER_NAMED_INTERFACE_END

#define GPU_SHADER_NAMED_INTERFACE_END ( _inst_name)
Value:
;

Referenced by OVERLAY_INFO_VARIATIONS_MODELMAT().

◆ GPU_SHADER_NAMED_INTERFACE_INFO

#define GPU_SHADER_NAMED_INTERFACE_INFO ( _interface,
_inst_name )
Value:
StageInterfaceInfo *ptr_##_interface = new StageInterfaceInfo(#_interface, #_inst_name); \
StageInterfaceInfo &_interface = *ptr_##_interface; \
g_interfaces->add_new(#_interface, ptr_##_interface); \
_interface

Referenced by OVERLAY_INFO_VARIATIONS_MODELMAT().

Function Documentation

◆ gpu_shader_create_info_compile()

◆ gpu_shader_create_info_exit()

void gpu_shader_create_info_exit ( )

◆ gpu_shader_create_info_get()

const GPUShaderCreateInfo * gpu_shader_create_info_get ( const char * info_name)

◆ gpu_shader_create_info_init()