//********************************** Banshee Engine (www.banshee3d.com) **************************************************// //**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************// #include "GLSL/BsGLSLProgramFactory.h" #include "GLSL/BsGLSLGpuProgram.h" namespace bs { namespace ct { SPtr GLSLProgramFactory::create(const GPU_PROGRAM_DESC& desc, GpuDeviceFlags deviceMask) { GLSLGpuProgram* prog = new (bs_alloc()) GLSLGpuProgram(desc, deviceMask); SPtr gpuProg = bs_shared_ptr(prog); gpuProg->_setThisPtr(gpuProg); return gpuProg; } SPtr GLSLProgramFactory::create(GpuProgramType type, GpuDeviceFlags deviceMask) { GPU_PROGRAM_DESC desc; desc.type = type; GLSLGpuProgram* prog = new (bs_alloc()) GLSLGpuProgram(desc, deviceMask); SPtr gpuProg = bs_shared_ptr(prog); gpuProg->_setThisPtr(gpuProg); return gpuProg; } }}