rpcsx/rpcs3/Emu/RSX/Program/ShaderInterpreter.h
2022-05-31 23:34:14 +03:00

41 lines
988 B
C++

#pragma once
namespace program_common
{
namespace interpreter
{
enum compiler_option
{
COMPILER_OPT_ENABLE_TEXTURES = 1,
COMPILER_OPT_ENABLE_DEPTH_EXPORT = 2,
COMPILER_OPT_ENABLE_F32_EXPORT = 4,
COMPILER_OPT_ENABLE_ALPHA_TEST_GE = 8,
COMPILER_OPT_ENABLE_ALPHA_TEST_G = 16,
COMPILER_OPT_ENABLE_ALPHA_TEST_LE = 32,
COMPILER_OPT_ENABLE_ALPHA_TEST_L = 64,
COMPILER_OPT_ENABLE_ALPHA_TEST_EQ = 128,
COMPILER_OPT_ENABLE_ALPHA_TEST_NE = 256,
COMPILER_OPT_ENABLE_FLOW_CTRL = 512,
COMPILER_OPT_ENABLE_PACKING = 1024,
COMPILER_OPT_ENABLE_KIL = 2048,
COMPILER_OPT_ENABLE_STIPPLING = 4096
};
static std::string get_vertex_interpreter()
{
const char* s =
#include "../Program/GLSLInterpreter/VertexInterpreter.glsl"
;
return s;
}
static std::string get_fragment_interpreter()
{
const char* s =
#include "../Program/GLSLInterpreter/FragmentInterpreter.glsl"
;
return s;
}
}
}