I have seen an example where the DeviceContext could be retrieved simply by casting ((DeviceContext)GraphicsDevice.ContextHandle)…
… but this is not possible anymore due to the fact, that GraphicsDevice has no .ContextHandle-Property. Is it still possible to access it? I want to retrieve the ConstantBuffers of a set VertexShader based on ((DeviceContext)GraphicsDevice.ContextHandle).VertexShader.GetConstantBuffers(a, b);
Ok, I use var buffers = ((Device)GraphicsDevice.Handle).ImmediateContext.VertexShader.GetConstantBuffers(0, 8);
… but for some reason it returns for every index null, although the effect is applied and the value of a constant in the cbuffer is set by .Parameters[“name”].SetValue(…).