Split shader types definitions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2923 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
9b6bbb0477
commit
0655f27f31
|
@ -0,0 +1,64 @@
|
||||||
|
#ifndef __E_SHADER_TYPES_H_INCLUDED__
|
||||||
|
#define __E_SHADER_TYPES_H_INCLUDED__
|
||||||
|
|
||||||
|
#include "irrTypes.h"
|
||||||
|
|
||||||
|
namespace irr
|
||||||
|
{
|
||||||
|
namespace video
|
||||||
|
{
|
||||||
|
|
||||||
|
//! Compile target enumeration for the addHighLevelShaderMaterial() method.
|
||||||
|
enum E_VERTEX_SHADER_TYPE
|
||||||
|
{
|
||||||
|
EVST_VS_1_1 = 0,
|
||||||
|
EVST_VS_2_0,
|
||||||
|
EVST_VS_2_a,
|
||||||
|
EVST_VS_3_0,
|
||||||
|
|
||||||
|
//! This is not a type, but a value indicating how much types there are.
|
||||||
|
EVST_COUNT
|
||||||
|
};
|
||||||
|
|
||||||
|
//! Names for all vertex shader types, each entry corresponds to a E_VERTEX_SHADER_TYPE entry.
|
||||||
|
const c8* const VERTEX_SHADER_TYPE_NAMES[] = {
|
||||||
|
"vs_1_1",
|
||||||
|
"vs_2_0",
|
||||||
|
"vs_2_a",
|
||||||
|
"vs_3_0",
|
||||||
|
0 };
|
||||||
|
|
||||||
|
//! Compile target enumeration for the addHighLevelShaderMaterial() method.
|
||||||
|
enum E_PIXEL_SHADER_TYPE
|
||||||
|
{
|
||||||
|
EPST_PS_1_1 = 0,
|
||||||
|
EPST_PS_1_2,
|
||||||
|
EPST_PS_1_3,
|
||||||
|
EPST_PS_1_4,
|
||||||
|
EPST_PS_2_0,
|
||||||
|
EPST_PS_2_a,
|
||||||
|
EPST_PS_2_b,
|
||||||
|
EPST_PS_3_0,
|
||||||
|
|
||||||
|
//! This is not a type, but a value indicating how much types there are.
|
||||||
|
EPST_COUNT
|
||||||
|
};
|
||||||
|
|
||||||
|
//! Names for all pixel shader types, each entry corresponds to a E_PIXEL_SHADER_TYPE entry.
|
||||||
|
const c8* const PIXEL_SHADER_TYPE_NAMES[] = {
|
||||||
|
"ps_1_1",
|
||||||
|
"ps_1_2",
|
||||||
|
"ps_1_3",
|
||||||
|
"ps_1_4",
|
||||||
|
"ps_2_0",
|
||||||
|
"ps_2_a",
|
||||||
|
"ps_2_b",
|
||||||
|
"ps_3_0",
|
||||||
|
0 };
|
||||||
|
|
||||||
|
|
||||||
|
} // end namespace video
|
||||||
|
} // end namespace irr
|
||||||
|
|
||||||
|
#endif // __E_SHADER_TYPES_H_INCLUDED__
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
#ifndef __I_GPU_PROGRAMMING_SERVICES_H_INCLUDED__
|
#ifndef __I_GPU_PROGRAMMING_SERVICES_H_INCLUDED__
|
||||||
#define __I_GPU_PROGRAMMING_SERVICES_H_INCLUDED__
|
#define __I_GPU_PROGRAMMING_SERVICES_H_INCLUDED__
|
||||||
|
|
||||||
#include "SMaterial.h"
|
#include "EShaderTypes.h"
|
||||||
|
#include "EMaterialTypes.h"
|
||||||
#include "path.h"
|
#include "path.h"
|
||||||
|
|
||||||
namespace irr
|
namespace irr
|
||||||
|
@ -22,54 +23,6 @@ namespace video
|
||||||
class IVideoDriver;
|
class IVideoDriver;
|
||||||
class IShaderConstantSetCallBack;
|
class IShaderConstantSetCallBack;
|
||||||
|
|
||||||
//! Compile target enumeration for the addHighLevelShaderMaterial() method.
|
|
||||||
enum E_VERTEX_SHADER_TYPE
|
|
||||||
{
|
|
||||||
EVST_VS_1_1 = 0,
|
|
||||||
EVST_VS_2_0,
|
|
||||||
EVST_VS_2_a,
|
|
||||||
EVST_VS_3_0,
|
|
||||||
|
|
||||||
//! This is not a type, but a value indicating how much types there are.
|
|
||||||
EVST_COUNT
|
|
||||||
};
|
|
||||||
|
|
||||||
//! Names for all vertex shader types, each entry corresponds to a E_VERTEX_SHADER_TYPE entry.
|
|
||||||
const c8* const VERTEX_SHADER_TYPE_NAMES[] = {
|
|
||||||
"vs_1_1",
|
|
||||||
"vs_2_0",
|
|
||||||
"vs_2_a",
|
|
||||||
"vs_3_0",
|
|
||||||
0 };
|
|
||||||
|
|
||||||
//! Compile target enumeration for the addHighLevelShaderMaterial() method.
|
|
||||||
enum E_PIXEL_SHADER_TYPE
|
|
||||||
{
|
|
||||||
EPST_PS_1_1 = 0,
|
|
||||||
EPST_PS_1_2,
|
|
||||||
EPST_PS_1_3,
|
|
||||||
EPST_PS_1_4,
|
|
||||||
EPST_PS_2_0,
|
|
||||||
EPST_PS_2_a,
|
|
||||||
EPST_PS_2_b,
|
|
||||||
EPST_PS_3_0,
|
|
||||||
|
|
||||||
//! This is not a type, but a value indicating how much types there are.
|
|
||||||
EPST_COUNT
|
|
||||||
};
|
|
||||||
|
|
||||||
//! Names for all pixel shader types, each entry corresponds to a E_PIXEL_SHADER_TYPE entry.
|
|
||||||
const c8* const PIXEL_SHADER_TYPE_NAMES[] = {
|
|
||||||
"ps_1_1",
|
|
||||||
"ps_1_2",
|
|
||||||
"ps_1_3",
|
|
||||||
"ps_1_4",
|
|
||||||
"ps_2_0",
|
|
||||||
"ps_2_a",
|
|
||||||
"ps_2_b",
|
|
||||||
"ps_3_0",
|
|
||||||
0 };
|
|
||||||
|
|
||||||
//! Interface making it possible to create and use programs running on the GPU.
|
//! Interface making it possible to create and use programs running on the GPU.
|
||||||
class IGPUProgrammingServices
|
class IGPUProgrammingServices
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue