rpcsx/rpcs3/Emu/RSX/VK/VKCommonDecompiler.h
kd-11 6a707f515e vk/gl: Factorize shared GLSL code
- prep vulkan for shared glsl backend
2017-08-16 23:58:30 +03:00

24 lines
515 B
C++

#pragma once
#include "../Common/ShaderParam.h"
#include "../Common/GLSLCommon.h"
namespace vk
{
using namespace ::glsl;
struct varying_register_t
{
std::string name;
int reg_location;
};
//Decompiler function lookup
std::string getFunctionImpl(FUNCTION f);
const varying_register_t& get_varying_register(const std::string& name);
bool compile_glsl_to_spv(std::string& shader, program_domain domain, std::vector<u32> &spv);
void initialize_compiler_context();
void finalize_compiler_context();
}