I thought on putting the lookup tables in `struct tpf_writer` but then I thought that it may be more futureproof to pass the ctx as argument to all the functions than the writer.
Sorry, meant, I thought on putting the lookup tables in `struct dxbc_writer` here. Well, it doesn't matter now. I created the new `struct tpf_writer`.