2.1 DirectX shader cache generation error

Problems building or running the engine, queries about how to use features etc.
Post Reply
Lax
Hobgoblin
Posts: 583
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 50

2.1 DirectX shader cache generation error

Post by Lax »

Hi,

I read in the Ogre2.1 FAQ about the shader generation, to get rid random hitches during gameplay. I'm using the newest Ogre2.1 version from hq.
So what I did is the following:
I created a function, that creates from all available meshes in the resource system entities. Afterwards I move with the camera to force the shader cache generation. But when I try to move the camera I get the following runtime error:

"RenderingApiException": The shader required more input attributes/semantics than what the VertexArrayObject / v1::VertexDeclaration has to offer. You're missing a component in D3D11HLSLProgram::getLayoutPso"

What could cause this message?

Another question:
When loading a scene, a lot of *PixelShader_ps.hlsl and *VertexShader_vs.hlsl files will be generated in the bin folder where also the applications are located. Is it possible to choose a sub-directory to generate those files there?

Regards
Lax

http://www.lukas-kalinowski.com/Homepage/?page_id=1631
Please support Second Earth Technic Base built of Lego bricks for Lego ideas: https://ideas.lego.com/projects/81b9bd1 ... b97b79be62

Post Reply