Add sampler and buffer.