TextureD toD([Pointer<TextureC>? ptr]) => .new( originalPointer: ptr, id: id, width: width, height: height, mipmaps: mipmaps, format: .fromValue(format), );