Stride Forums Archive

Texture.GetData on iOS

4 posts, 2107 views, 2015-07-15 to 2015-09-29

MattJack 2015-07-15 #1

I try to get texture Pixels on an iOS paradox project

Color[] colors = gradientTexture.GetData();

But doing so I get a exception
System.NotSupportedException: Operation is not supported.

What other function should I use to to do read-only access to a texture on iOS?
Using low level apis like DX or OpenTK it is possible to lock, but I could find such function in paradox.

Thanks!

xenux 2015-07-21 #2

Thanks for the report. We will investigate and fix that for next release.
Could you just confirm that it is working on Windows and indicate which flags you used at the creation of the texture?

Yes it’s working on Windows, Windows store, Windows phone.

jwollen (Jörg Wollenschläger) 2015-09-29 #4 in reply to #3

This has been fixed and should properly work in the upcoming release.