14 hours ago, ajmiles said:Sharing a PIX capture with us would probably also solve the problem.
Ok here is how my sample is supposed to work :
I have a rotating cube and 6 textures loaded in the shader, every x seconds, a 32 bits root constant (an integer) is updated to the pixel shader and the texture is switched (1-6). And if my value fall down to zero, I juste return black as pixel shader color.
When doing my sample with a traditionnal constant buffer view to pass my int value, it's working fine. But when I use a 32 bits root constant, after a few second of running the value fall to zero.
Here are two PIX captures, one when it's working and another one when the value fall down to zero.
PS : I am using C# with SharpDX, maybe a pointer lifecycle issue ? Even if in debug mode the pointer seem to be OK even after root constant has stop updating correctly.
Thank in advance