This is the function where I set the buffer:
This two functions do the rendering (the last one is the problem):
This is my matrix struct:
And this is my shader:
Here's some PIX info
Thanks in advance.
Jump to content
Posted 27 February 2012 - 01:03 AM
Posted 27 February 2012 - 02:10 AM
Posted 27 February 2012 - 02:32 AM
I do something similar, in D3D11 - differences are:
-- using XMFLOAT4X4 for the matrix variable format
-- loading to XMMATRIX and transposing with XMMatrixTranspose before storing back to XMFLOAT4X4 and mapping to cbuffer
-- not using packoffset in the cbuffer declaration
-- register(cb0) instead of register(b0) for the cbuffer
I'll look closer at what you did later, but those are differences I've found and mine works fine..
Also, your PIX doesn't exactly show the problem, for me - are those cbuffer variables in the debugger not reasonable? they're definitely not zeroed out or something.. in what way are they wrong?
Posted 27 February 2012 - 02:37 AM
Posted 27 February 2012 - 02:42 AM
About the PIX thing, I am concerned about the pre and post Vertex shader thing, shouldn't the post Vertex shader output be equal or at least similar to the pre Vertex shader output?
Posted 27 February 2012 - 02:55 AM
Posted 27 February 2012 - 04:17 PM