|
|
@ -26,15 +26,11 @@
|
|
|
|
#ifndef NL_PIXEL_PROGRAM_H
|
|
|
|
#ifndef NL_PIXEL_PROGRAM_H
|
|
|
|
#define NL_PIXEL_PROGRAM_H
|
|
|
|
#define NL_PIXEL_PROGRAM_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "program.h"
|
|
|
|
#include <nel/misc/types_nl.h>
|
|
|
|
|
|
|
|
#include <nel/misc/smart_ptr.h>
|
|
|
|
#include "nel/misc/types_nl.h"
|
|
|
|
|
|
|
|
#include "nel/misc/smart_ptr.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <list>
|
|
|
|
#include <list>
|
|
|
|
|
|
|
|
|
|
|
|
#define PIXEL_SHADER_PROFILE "ps_2_0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace NL3D {
|
|
|
|
namespace NL3D {
|
|
|
|
|
|
|
|
|
|
|
|
// List typedef.
|
|
|
|
// List typedef.
|
|
|
@ -59,22 +55,18 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------------------
|
|
|
|
//-------------------------------------------------------------------------------
|
|
|
|
class CPixelProgram : public IProgram
|
|
|
|
class CPixelProgram : public NLMISC::CRefCount
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
/// Constructor
|
|
|
|
/// Constructor
|
|
|
|
CPixelProgram (const char* program, bool isEffectPrg=false);
|
|
|
|
CPixelProgram (const char* program);
|
|
|
|
|
|
|
|
|
|
|
|
/// Destructor
|
|
|
|
/// Destructor
|
|
|
|
virtual ~CPixelProgram ();
|
|
|
|
virtual ~CPixelProgram ();
|
|
|
|
|
|
|
|
|
|
|
|
/// The driver informations. For the driver implementation only.
|
|
|
|
/// The driver informations. For the driver implementation only.
|
|
|
|
NLMISC::CRefPtr<IPixelProgramDrvInfos> _DrvInfo;
|
|
|
|
NLMISC::CRefPtr<IPixelProgramDrvInfos> _DrvInfo;
|
|
|
|
|
|
|
|
|
|
|
|
const char * getASMProfile() { return PIXEL_SHADER_PROFILE; } ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const char * getPixelASMProfile() { return PIXEL_SHADER_PROFILE; } ;
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|