Nikolay Sivov : d3d10/effect: Go through both local and shared variables when looking for shader resources.