nine/state: update texture and sampler state