메소드 | 설명 | |
---|---|---|
AddHighLevelShaderMaterial ( string vsprogram, string ventrypoint, VertexShaderType vsCompileTarget, string psprogram, string psEntryPoint, PixelShaderType psCompileTarget, OnShaderConstantSetDelegate callback, MaterialType baseMat, int userData ) : int |
Adds a new material renderer to the VideoDriver, based on a high level shading language. Currently only HLSL/D3D9 and GLSL/OpenGL is supported.
|
|
AddHighLevelShaderMaterialFromFiles ( string program, string ventrypoint, VertexShaderType vsCompileTarget, string pixelShaderProgram, string psEntryPoint, PixelShaderType psCompileTarget, OnShaderConstantSetDelegate callback, MaterialType baseMat, int userData ) : int |
Adds a new material renderer to the VideoDriver, based on a high level shading language. Currently only HLSL/D3D9 and GLSL/OpenGL is supported.
|
|
AddShaderMaterial ( string vsprogram, string psprogram, OnShaderConstantSetDelegate callback, MaterialType baseMat, int userData ) : int |
Adds a new material renderer to the VideoDriver, using pixel and/or vertex shaders to render geometry. Note that it is a good idea to call VideoDriver.QueryFeature() before to check if the VideoDriver supports the vertex and/or pixel shader version your are using.
|
|
AddShaderMaterialFromFiles ( string vsprogram, string psprogram, OnShaderConstantSetDelegate callback, MaterialType baseMat, int userData ) : int |
Adds a new material renderer to the VideoDriver, using pixel and/or vertex shaders to render geometry. Note that it is a good idea to call VideoDriver.QueryFeature() before to check if the VideoDriver supports the vertex and/or pixel shader version your are using.
|
|
GPUProgrammingServices ( |
메소드 | 설명 | |
---|---|---|
GPU_AddHighLevelShaderMaterialFromFiles ( |
||
GPU_AddShaderMaterial ( |
||
GPU_AddShaderMaterialFromFiles ( |
public AddHighLevelShaderMaterial ( string vsprogram, string ventrypoint, VertexShaderType vsCompileTarget, string psprogram, string psEntryPoint, PixelShaderType psCompileTarget, OnShaderConstantSetDelegate callback, MaterialType baseMat, int userData ) : int | ||
vsprogram | string | String containing the source of the vertex shader program. This can be "" if no vertex program should be used. |
ventrypoint | string | Name of the function of the vertexShaderProgram |
vsCompileTarget | VertexShaderType | Vertex shader version where the high level shader should be compiled to. |
psprogram | string | String containing the source of the pixel shader program. This can be "" if no pixel shader should be used. |
psEntryPoint | string | Entry name of the function of the pixelShaderEntryPointName |
psCompileTarget | PixelShaderType | Pixel shader version where the high level shader should be compiled to. |
callback | OnShaderConstantSetDelegate | Delegate in which you can set the needed vertex and pixel shader program constants. |
baseMat | MaterialType | Base material which renderstates will be used to shade the material. |
userData | int | An user data int. This int can be set to any value and will be set as parameter in the callback method when calling OnSetConstants(). In this way it is easily possible to use the same delegate method for multiple materials and distinguish between them during the call. |
리턴 | int |
public AddHighLevelShaderMaterialFromFiles ( string program, string ventrypoint, VertexShaderType vsCompileTarget, string pixelShaderProgram, string psEntryPoint, PixelShaderType psCompileTarget, OnShaderConstantSetDelegate callback, MaterialType baseMat, int userData ) : int | ||
program | string | String containing the path to the vertex shader program. This can be "" (empty string) if no vertex program should be used. |
ventrypoint | string | Name of the function of the vertexShaderProgram |
vsCompileTarget | VertexShaderType | Vertex shader version where the high level shader should be compiled to. |
pixelShaderProgram | string | String containing the path to the pixel shader program. This can be "" (empty string) if no pixel shader should be used. |
psEntryPoint | string | Entry name of the function of the pixelShaderEntryPointName |
psCompileTarget | PixelShaderType | Pixel shader version where the high level shader should be compiled to. |
callback | OnShaderConstantSetDelegate | Delegate in which you can set the needed vertex and pixel shader program constants. |
baseMat | MaterialType | Base material which renderstates will be used to shade the material. |
userData | int | An user data int. This int can be set to any value and will be set as parameter in the callback method when calling OnSetConstants(). In this way it is easily possible to use the same delegate method for multiple materials and distinguish between them during the call. |
리턴 | int |
public AddShaderMaterial ( string vsprogram, string psprogram, OnShaderConstantSetDelegate callback, MaterialType baseMat, int userData ) : int | ||
vsprogram | string | String containing the source of the vertex shader program. This can be "" (empty string) if no vertex program should be used. For DX8 programs, the will always input registers look like this: v0: position, v1: normal, v2: color, v3: texture cooridnates, v4: texture coordinates 2 if available. For DX9 programs, you can manually set the registers using the dcl_ statements. |
psprogram | string | String containing the source of the pixel shader program. This can be "" (empty string) if you don't want to use a pixel shader. |
callback | OnShaderConstantSetDelegate | Delegate in which you can set the needed vertex and pixel shader program constants. |
baseMat | MaterialType | Base material which renderstates will be used to shade the material. |
userData | int | An user data int. This int can be set to any value and will be set as parameter in the callback method when calling OnSetConstants(). In this way it is easily possible to use the same callback method for multiple materials and distinguish between them during the call. |
리턴 | int |
public AddShaderMaterialFromFiles ( string vsprogram, string psprogram, OnShaderConstantSetDelegate callback, MaterialType baseMat, int userData ) : int | ||
vsprogram | string | String containing the path to the vertex shader program. This can be "" (empty string) if no vertex program should be used. For DX8 programs, the will always input registers look like this: v0: position, v1: normal, v2: color, v3: texture cooridnates, v4: texture coordinates 2 if available. For DX9 programs, you can manually set the registers using the dcl_ statements. |
psprogram | string | String containing the path to the pixel shader program. This can be "" (empty string) if you don't want to use a pixel shader. |
callback | OnShaderConstantSetDelegate | Delegate in which you can set the needed vertex and pixel shader program constants. |
baseMat | MaterialType | Base material which renderstates will be used to shade the material. |
userData | int | An user data int. This int can be set to any value and will be set as parameter in the callback method when calling OnSetConstants(). In this way it is easily possible to use the same callback method for multiple materials and distinguish between them during the call. |
리턴 | int |
public GPUProgrammingServices ( |
||
raw | ||
리턴 | System |