32 lines
672 B
C++
32 lines
672 B
C++
#include "dv_config.h"
|
|
#include "shader/dvc_shader_interface.h"
|
|
|
|
#include "test_vertex_shader.h"
|
|
#include "test_pixel_shader.h"
|
|
|
|
class TestShaderInterface : public davinci::ShaderFileInterface
|
|
{
|
|
public:
|
|
virtual davinci::VertexShaderInterface* getVertexShader(const char* szName)
|
|
{
|
|
static TestVertexShader testVertexShader;
|
|
return &testVertexShader;
|
|
}
|
|
virtual davinci::PixelShaderInterface* getPixelShader(const char* szName)
|
|
{
|
|
static TestPixelShader testPixelShader;
|
|
return &testPixelShader;
|
|
}
|
|
};
|
|
|
|
extern "C"
|
|
{
|
|
|
|
__declspec(dllexport) davinci::ShaderFileInterface* ShaderFileInterface()
|
|
{
|
|
static TestShaderInterface theInterface;
|
|
return &theInterface;
|
|
}
|
|
|
|
}
|