Note that the existing code wouldn't work for volumes, since volumes aren't proper resources in d3d9.
Attach a file by drag & drop or click to upload