Blender V5.3
vk_shader_compiler.cc File Reference
#include "BKE_appdir.hh"
#include "BLI_fileops.hh"
#include "BLI_path_utils.hh"
#include "BLI_simd.hh"
#include "vk_backend.hh"
#include "vk_device.hh"
#include "vk_shader.hh"
#include "vk_shader_compiler.hh"
#include <cstring>
#include <iostream>
#include <string>
#include "CLG_log.h"
#include "spirv/unified1/spirv.h"

Go to the source code of this file.

Classes

struct  blender::gpu::SPIRVSidecar

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::gpu

Functions

static std::optional< std::string > blender::gpu::cache_dir_get ()
SPIR-V disk cache
static uint32_t blender::gpu::spirv_target_version_get ()
static bool blender::gpu::read_spirv_from_disk (VKShaderModule &shader_module, StringRef hash_extra)
static void blender::gpu::write_spirv_to_disk (VKShaderModule &shader_module)
Compilation
static StringRef blender::gpu::to_stage_name (shaderc_shader_kind stage)
static void blender::gpu::spirv_inject_op_string (const Span< uint32_t > &spirv_in, Vector< uint32_t > &spirv_out, StringRef name, uint32_t glsl_version)
static std::string blender::gpu::patch_line_directives (std::string source)
static bool blender::gpu::compile_ex (shaderc::Compiler &compiler, VKShader &shader, shaderc_shader_kind stage, VKShaderModule &shader_module)

Variables

static CLG_LogRef blender::gpu::LOG = {"gpu.vulkan"}