cpt-max / Docs

16 stars 0 forks source link

Exception: Vertex buffers are write-only on OpenGL ES platforms #1

Closed k4G17eYWI closed 3 months ago

k4G17eYWI commented 4 months ago

Hi! I've tried to get data from compute buffer on my android device and got this:

android.runtime.JavaProxyThrowable: [System.NotSupportedException]: 
Microsoft.Xna.Framework.Graphics.BufferResource.PlatformGetData(Unknown Source:0)
Microsoft.Xna.Framework.Graphics.StructuredBuffer.GetData(Unknown Source:0)
Microsoft.Xna.Framework.Graphics.StructuredBuffer.GetData(Unknown Source:0)
MyStructuredBuffer.GetData(Unknown Source:0)

On a windows build everyting works well. As far I know GL ES 3 supports getting data from buffer and this is just old xna code interfering.

cpt-max commented 4 months ago

Thanks for reporting. I'll have a look at it when I find some spare time.

cpt-max commented 3 months ago

fix is discussed here: https://github.com/cpt-max/MonoGame/pull/5