| 1234567891011121314151617181920212223242526272829303132333435 |
- #include "CmD3D11HLSLProgramFactory.h"
- #include "CmD3D11HLSLProgram.h"
- namespace CamelotEngine
- {
- String D3D11HLSLProgramFactory::sLanguageName = "hlsl";
- D3D11HLSLProgramFactory::D3D11HLSLProgramFactory()
- {
- }
- D3D11HLSLProgramFactory::~D3D11HLSLProgramFactory()
- {
- }
- const String& D3D11HLSLProgramFactory::getLanguage(void) const
- {
- return sLanguageName;
- }
- HighLevelGpuProgram* D3D11HLSLProgramFactory::create(const String& source, const String& entryPoint,
- GpuProgramType gptype, GpuProgramProfile profile, const vector<GpuProgIncludeHandle>::type* includes)
- {
- D3D11HLSLProgram* prog = new D3D11HLSLProgram(source, entryPoint, sLanguageName, gptype, profile, includes);
- return prog;
- }
- HighLevelGpuProgram* D3D11HLSLProgramFactory::create()
- {
- D3D11HLSLProgram* prog = new D3D11HLSLProgram("", "", sLanguageName, GPT_VERTEX_PROGRAM, GPP_NONE, nullptr);
- return prog;
- }
- }
|