Operating System: Windows 10
Render System: D3D11
Good evening.
I'm trying to create an assembly version of the CelShader provided in the example media.
For this I wanted to export the mapping like this (in the setup routine):
Code: Select all
Ogre::GpuProgramPtr prog = Ogre::GpuProgramManager::getSingleton().getByName("Ogre/CelShadingVPhlsl");
prog->getConstantDefinitions().save("C:\\Users\\Patrick\\Documents\\Ogre\\SceneLoadSample\\test.constants");
No crashes or anything like that.
Aren't they defined here?:
Code: Select all
vertex_program Ogre/CelShadingVPhlsl hlsl
{
source Example_CelShading.hlsl
entry_point main_vp
target vs_4_0 vs_4_0_level_9_1 vs_4_0_level_9_3
default_params
{
param_named_auto lightPosition light_position_object_space 0
param_named_auto eyePosition camera_position_object_space
param_named_auto worldViewProj worldviewproj_matrix
param_named shininess float 10
}
}
How can I create a mapping which tells which register corresponds to which parameter?
I hope my question is understandable and not completely stupid.
EDIT: I also tried calling createParameters() on the vertex program, before getting the ConstantDefinitions.