New answers tagged directx
I don't know why people automatically jump to premature generalization/optimization when questions like these pop up. There is something to be said about being preemptive and realizing when a component in a system is likely to be swapped out. All of the answers about "don't worry and code away till you need to change it" generally get people into trouble in ...
It turns out that the scaling was being corrupted/altered elsewhere, so it was unrelated to the problem I believed it to be. The code above is, for all intents and purposes, correct.
StretchRect function does not execute the pixel shader. Instead: Set up your render target and draw a polygon to cover the entire screen. This is the common way to perform a "full screen shader" pass. Anecdotally, My personal recommendation is to investigate the Compute Shader.
If I am understanding the question correctly, you just want the delta mouse when you are in relative mode. According to the docs, https://directxtk.codeplex.com/wikipage?title=Mouse&referringTitle=Home#Absolute%20vs.%20Relative%20Mouse%20position When you query the state of the mouse, the x and y coordinates return the delta. Note, because you ...
No, it is not possible, unless you read the involved pixels into a pixel shader, and then do the interpolation in the shader program manually.
Top 50 recent answers are included