Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Unity please finish sample on GetNativeVertexBufferPtr ModifyVertexBuffer for Android

Discussion in 'Android' started by miniduck, Jun 16, 2017.

  1. miniduck

    miniduck

    Joined:
    Sep 27, 2012
    Posts:
    117
    Would love to see this sample plugin supporting Android!

    https://bitbucket.org/Unity-Technologies/graphicsdemos

    Code (CSharp):
    1. void* RenderAPI_OpenGLCoreES::BeginModifyVertexBuffer(void* bufferHandle, size_t* outBufferSize)
    2. {
    3. #    if SUPPORT_OPENGL_ES
    4.     return 0; // sad panda
    5. #    else
    Thanks!
     
  2. miniduck

    miniduck

    Joined:
    Sep 27, 2012
    Posts:
    117
    Changed to glMapBufferRange and seems to work ok, so far so good..

    Code (CSharp):
    1. void* mapped = glMapBufferRange(GL_ARRAY_BUFFER, 0, size, GL_MAP_WRITE_BIT);
     
unityunity