ShaderCore: Add preliminary support for Texture2D and SamplerState.