Extended the texture object for d3d.