CmD3D11HLSLProgramFactory.cpp 1022 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #include "CmD3D11HLSLProgramFactory.h"
  2. #include "CmD3D11HLSLProgram.h"
  3. namespace CamelotEngine
  4. {
  5. String D3D11HLSLProgramFactory::sLanguageName = "hlsl";
  6. D3D11HLSLProgramFactory::D3D11HLSLProgramFactory()
  7. {
  8. }
  9. D3D11HLSLProgramFactory::~D3D11HLSLProgramFactory()
  10. {
  11. }
  12. const String& D3D11HLSLProgramFactory::getLanguage(void) const
  13. {
  14. return sLanguageName;
  15. }
  16. HighLevelGpuProgram* D3D11HLSLProgramFactory::create(const String& source, const String& entryPoint, GpuProgramType gptype, GpuProgramProfile profile)
  17. {
  18. D3D11HLSLProgram* prog = new D3D11HLSLProgram(source, entryPoint, sLanguageName, gptype, profile);
  19. return prog;
  20. }
  21. HighLevelGpuProgram* D3D11HLSLProgramFactory::create()
  22. {
  23. D3D11HLSLProgram* prog = new D3D11HLSLProgram("", "", sLanguageName, GPT_VERTEX_PROGRAM, GPP_NONE);
  24. return prog;
  25. }
  26. void D3D11HLSLProgramFactory::destroy_internal(HighLevelGpuProgram* prog)
  27. {
  28. delete prog;
  29. }
  30. }