mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
41 lines
988 B
C++
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;
|
|
}
|
|
}
|
|
}
|