Jump to content
  • Advertisement
romashka911

DX11 Stage did not run. No output. Pixel Shader

Recommended Posts

Posted (edited)

Hi everybody!

After moving from XNA math to DX math, during rendering multiple objects (WorldObject instances, which have a reference to ModelClass instance as member), some objects are not drawn.  For example, i deploy 4 teapots in the world, but only 2 of them are drawn. With help of DirectX Debugger i found that when i call Render function for WorldObjects, their vertex buffers are successfully loaded into input assembler, but vertex shader's output has nothing, and pixel shader stage didn't run. Firstly, i thought that i have trouble with mapping contant buffer where matrices (world, view, projection) are held, but if it is, why are not draw only certain models? I'm confused, maybe somebody can prompt where can be issue...

Rendering chain: GameScene -> WorldObjects -> ModelClass -> ShaderClass

Attached report and source files.

ModelClass.h https://pastebin.com/wug0agt0

ModelClass.cpp https://pastebin.com/qdLneLaF

ShaderClass.h https://pastebin.com/RuY23iwM

ShaderClass.cpp https://pastebin.com/fT1Ek0TL

Structures.h https://pastebin.com/2p9tapZL

Vertex shader https://pastebin.com/LM3rVmgE

Pixel shader https://pastebin.com/JvYT4u2b

report.diagsession

Edited by romashka911

Share this post


Link to post
Share on other sites
Advertisement
Posted (edited)

Solved. The problem was that i was passing D3DXMATRIX instances to Render functions via references. Maybe somebody could explain what reason figures here?

Edited by romashka911

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!