Assert for right resource type in Resource::Pool Lookup and QueryState
Support for setting textures on shader programs