5#ifndef __I_GPU_PROGRAMMING_SERVICES_H_INCLUDED__
6#define __I_GPU_PROGRAMMING_SERVICES_H_INCLUDED__
8#include "EShaderTypes.h"
9#include "EMaterialTypes.h"
10#include "EPrimitiveTypes.h"
13#include "IGPUCompute.h"
91 const c8* vertexShaderProgram,
92 const c8* vertexShaderEntryPointName,
94 const c8* pixelShaderProgram,
95 const c8* pixelShaderEntryPointName,
97 const c8* geometryShaderProgram,
98 const c8* geometryShaderEntryPointName =
"main",
110 const c8* vertexShaderProgram,
111 const c8* vertexShaderEntryPointName=
"main",
113 const c8* pixelShaderProgram=0,
114 const c8* pixelShaderEntryPointName=
"main",
122 vertexShaderProgram, vertexShaderEntryPointName,
123 vsCompileTarget, pixelShaderProgram,
124 pixelShaderEntryPointName, psCompileTarget,
125 0,
"main", EGST_GS_4_0,
127 callback, baseMaterial, userData, shadingLang);
130 virtual IGPUCompute* createComputeProgram(
const c8* computeShaderProgram,
131 const c8* computeShaderEntryPointName =
"main",
135 const c8* computeShaderEntryPointName =
"main",
143 const c8* vertexShaderProgram,
144 const c8* pixelShaderProgram=0,
150 vertexShaderProgram,
"main",
151 EVST_VS_1_1, pixelShaderProgram,
153 0,
"main", EGST_GS_4_0,
155 callback, baseMaterial, userData);
163 const c8* vertexShaderProgram,
164 const c8* pixelShaderProgram = 0,
165 const c8* geometryShaderProgram = 0,
174 vertexShaderProgram,
"main",
175 EVST_VS_1_1, pixelShaderProgram,
177 geometryShaderProgram,
"main", EGST_GS_4_0,
178 inType, outType, verticesOut,
179 callback, baseMaterial, userData);
226 const io::path& vertexShaderProgramFileName,
227 const c8* vertexShaderEntryPointName,
229 const io::path& pixelShaderProgramFileName,
230 const c8* pixelShaderEntryPointName,
232 const io::path& geometryShaderProgramFileName,
233 const c8* geometryShaderEntryPointName =
"main",
245 const io::path& vertexShaderProgramFileName,
246 const c8* vertexShaderEntryPointName =
"main",
248 const io::path& pixelShaderProgramFileName =
"",
249 const c8* pixelShaderEntryPointName =
"main",
257 vertexShaderProgramFileName, vertexShaderEntryPointName,
258 vsCompileTarget, pixelShaderProgramFileName,
259 pixelShaderEntryPointName, psCompileTarget,
260 "",
"main", EGST_GS_4_0,
262 callback, baseMaterial, userData, shadingLang);
270 const io::path& vertexShaderProgramFileName,
271 const io::path& pixelShaderProgramFileName =
"",
277 vertexShaderProgramFileName,
"main",
278 EVST_VS_1_1, pixelShaderProgramFileName,
280 "",
"main", EGST_GS_4_0,
282 callback, baseMaterial, userData);
290 const io::path& vertexShaderProgramFileName,
291 const io::path& pixelShaderProgramFileName =
"",
292 const io::path& geometryShaderProgramFileName =
"",
301 vertexShaderProgramFileName,
"main",
302 EVST_VS_1_1, pixelShaderProgramFileName,
304 geometryShaderProgramFileName,
"main", EGST_GS_4_0,
305 inType, outType, verticesOut,
306 callback, baseMaterial, userData);
352 const c8* vertexShaderEntryPointName,
355 const c8* pixelShaderEntryPointName,
358 const c8* geometryShaderEntryPointName =
"main",
371 const c8* vertexShaderEntryPointName =
"main",
374 const c8* pixelShaderEntryPointName =
"main",
382 vertexShaderProgram, vertexShaderEntryPointName,
383 vsCompileTarget, pixelShaderProgram,
384 pixelShaderEntryPointName, psCompileTarget,
385 0,
"main", EGST_GS_4_0,
387 callback, baseMaterial, userData, shadingLang);
425 const c8* pixelShaderProgram = 0,
428 s32 userData = 0) = 0;
452 s32 userData = 0) = 0;
474 const io::path& pixelShaderProgramFileName,
477 s32 userData = 0) = 0;
Interface providing read acess to a file.
Definition IReadFile.h:18
Definition IGPUCompute.h:22
Interface making it possible to create and use programs running on the GPU.
Definition IGPUProgrammingServices.h:42
virtual ~IGPUProgrammingServices()
Destructor.
Definition IGPUProgrammingServices.h:46
s32 addHighLevelShaderMaterialFromFiles(const io::path &vertexShaderProgramFileName, const c8 *vertexShaderEntryPointName="main", E_VERTEX_SHADER_TYPE vsCompileTarget=EVST_VS_1_1, const io::path &pixelShaderProgramFileName="", const c8 *pixelShaderEntryPointName="main", E_PIXEL_SHADER_TYPE psCompileTarget=EPST_PS_1_1, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0, E_GPU_SHADING_LANGUAGE shadingLang=EGSL_DEFAULT)
convenience function for use without geometry shaders
Definition IGPUProgrammingServices.h:244
virtual s32 addShaderMaterialFromFiles(io::IReadFile *vertexShaderProgram, io::IReadFile *pixelShaderProgram, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)=0
Like IGPUProgrammingServices::addShaderMaterial(), but loads from files.
virtual s32 addShaderMaterialFromFiles(const io::path &vertexShaderProgramFileName, const io::path &pixelShaderProgramFileName, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)=0
Like IGPUProgrammingServices::addShaderMaterial(), but loads from files.
virtual s32 addHighLevelShaderMaterial(const c8 *vertexShaderProgram, const c8 *vertexShaderEntryPointName, E_VERTEX_SHADER_TYPE vsCompileTarget, const c8 *pixelShaderProgram, const c8 *pixelShaderEntryPointName, E_PIXEL_SHADER_TYPE psCompileTarget, const c8 *geometryShaderProgram, const c8 *geometryShaderEntryPointName="main", E_GEOMETRY_SHADER_TYPE gsCompileTarget=EGST_GS_4_0, scene::E_PRIMITIVE_TYPE inType=scene::EPT_TRIANGLES, scene::E_PRIMITIVE_TYPE outType=scene::EPT_TRIANGLE_STRIP, u32 verticesOut=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0, E_GPU_SHADING_LANGUAGE shadingLang=EGSL_DEFAULT)=0
Adds a new high-level shading material renderer to the VideoDriver.
s32 addHighLevelShaderMaterial(const c8 *vertexShaderProgram, const c8 *pixelShaderProgram=0, const c8 *geometryShaderProgram=0, scene::E_PRIMITIVE_TYPE inType=scene::EPT_TRIANGLES, scene::E_PRIMITIVE_TYPE outType=scene::EPT_TRIANGLE_STRIP, u32 verticesOut=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)
convenience function for use with many defaults, with geometry shader
Definition IGPUProgrammingServices.h:162
s32 addHighLevelShaderMaterialFromFiles(const io::path &vertexShaderProgramFileName, const io::path &pixelShaderProgramFileName="", IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)
convenience function for use with many defaults, without geometry shader
Definition IGPUProgrammingServices.h:269
virtual s32 addHighLevelShaderMaterialFromFiles(io::IReadFile *vertexShaderProgram, const c8 *vertexShaderEntryPointName, E_VERTEX_SHADER_TYPE vsCompileTarget, io::IReadFile *pixelShaderProgram, const c8 *pixelShaderEntryPointName, E_PIXEL_SHADER_TYPE psCompileTarget, io::IReadFile *geometryShaderProgram, const c8 *geometryShaderEntryPointName="main", E_GEOMETRY_SHADER_TYPE gsCompileTarget=EGST_GS_4_0, scene::E_PRIMITIVE_TYPE inType=scene::EPT_TRIANGLES, scene::E_PRIMITIVE_TYPE outType=scene::EPT_TRIANGLE_STRIP, u32 verticesOut=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0, E_GPU_SHADING_LANGUAGE shadingLang=EGSL_DEFAULT)=0
Like IGPUProgrammingServices::addShaderMaterial(), but loads from files.
s32 addHighLevelShaderMaterial(const c8 *vertexShaderProgram, const c8 *vertexShaderEntryPointName="main", E_VERTEX_SHADER_TYPE vsCompileTarget=EVST_VS_1_1, const c8 *pixelShaderProgram=0, const c8 *pixelShaderEntryPointName="main", E_PIXEL_SHADER_TYPE psCompileTarget=EPST_PS_1_1, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0, E_GPU_SHADING_LANGUAGE shadingLang=EGSL_DEFAULT)
convenience function for use without geometry shaders
Definition IGPUProgrammingServices.h:109
s32 addHighLevelShaderMaterialFromFiles(io::IReadFile *vertexShaderProgram, const c8 *vertexShaderEntryPointName="main", E_VERTEX_SHADER_TYPE vsCompileTarget=EVST_VS_1_1, io::IReadFile *pixelShaderProgram=0, const c8 *pixelShaderEntryPointName="main", E_PIXEL_SHADER_TYPE psCompileTarget=EPST_PS_1_1, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0, E_GPU_SHADING_LANGUAGE shadingLang=EGSL_DEFAULT)
convenience function for use without geometry shaders
Definition IGPUProgrammingServices.h:369
virtual s32 addHighLevelShaderMaterialFromFiles(const io::path &vertexShaderProgramFileName, const c8 *vertexShaderEntryPointName, E_VERTEX_SHADER_TYPE vsCompileTarget, const io::path &pixelShaderProgramFileName, const c8 *pixelShaderEntryPointName, E_PIXEL_SHADER_TYPE psCompileTarget, const io::path &geometryShaderProgramFileName, const c8 *geometryShaderEntryPointName="main", E_GEOMETRY_SHADER_TYPE gsCompileTarget=EGST_GS_4_0, scene::E_PRIMITIVE_TYPE inType=scene::EPT_TRIANGLES, scene::E_PRIMITIVE_TYPE outType=scene::EPT_TRIANGLE_STRIP, u32 verticesOut=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0, E_GPU_SHADING_LANGUAGE shadingLang=EGSL_DEFAULT)=0
Like IGPUProgrammingServices::addShaderMaterial(), but loads from files.
s32 addHighLevelShaderMaterial(const c8 *vertexShaderProgram, const c8 *pixelShaderProgram=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)
convenience function for use with many defaults, without geometry shader
Definition IGPUProgrammingServices.h:142
s32 addHighLevelShaderMaterialFromFiles(const io::path &vertexShaderProgramFileName, const io::path &pixelShaderProgramFileName="", const io::path &geometryShaderProgramFileName="", scene::E_PRIMITIVE_TYPE inType=scene::EPT_TRIANGLES, scene::E_PRIMITIVE_TYPE outType=scene::EPT_TRIANGLE_STRIP, u32 verticesOut=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)
convenience function for use with many defaults, with geometry shader
Definition IGPUProgrammingServices.h:289
virtual s32 addShaderMaterial(const c8 *vertexShaderProgram=0, const c8 *pixelShaderProgram=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)=0
Adds a new ASM shader material renderer to the VideoDriver.
Interface making it possible to set constants for gpu programs every frame.
Definition IShaderConstantSetCallBack.h:22
Interface to driver which is able to perform 2d and 3d graphics functions.
Definition IVideoDriver.h:388
This namespace provides interfaces for input/output: Reading and writing files, accessing zip archive...
Definition EAttributes.h:11
core::string< fschar_t > path
Type used for all file system related strings.
Definition path.h:17
E_PRIMITIVE_TYPE
Enumeration for all primitive types there are.
Definition EPrimitiveTypes.h:15
@ EPT_TRIANGLES
Explicitly set all vertices for each triangle.
Definition EPrimitiveTypes.h:37
@ EPT_TRIANGLE_STRIP
Definition EPrimitiveTypes.h:30
The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done ...
Definition EDriverFeatures.h:11
E_PIXEL_SHADER_TYPE
Compile target enumeration for the addHighLevelShaderMaterial() method.
Definition EShaderTypes.h:51
E_GEOMETRY_SHADER_TYPE
Enum for supported geometry shader types.
Definition EShaderTypes.h:85
E_GPU_SHADING_LANGUAGE
Enumeration for different types of shading languages.
Definition IGPUProgrammingServices.h:32
@ EGSL_CG
Cg shading language.*/.
Definition IGPUProgrammingServices.h:37
@ EGSL_DEFAULT
The default language, so HLSL for Direct3D and GLSL for OpenGL.
Definition IGPUProgrammingServices.h:34
E_VERTEX_SHADER_TYPE
Compile target enumeration for the addHighLevelShaderMaterial() method.
Definition EShaderTypes.h:25
E_MATERIAL_TYPE
Abstracted and easy to use fixed function/programmable pipeline material modes.
Definition EMaterialTypes.h:15
@ EMT_SOLID
Standard solid material.
Definition EMaterialTypes.h:19
E_COMPUTE_SHADER_TYPE
Enum for supported compute shader types.
Definition EShaderTypes.h:131
Everything in the Irrlicht Engine can be found in this namespace.
Definition Skylicht.h:33
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
char c8
8 bit character variable.
Definition irrTypes.h:31
signed int s32
32 bit signed variable.
Definition irrTypes.h:66