Search Unity

GetData does not work with Vulkan

Discussion in 'Shaders' started by LionelTC, Oct 14, 2019.

  1. LionelTC

    LionelTC

    Joined:
    Oct 14, 2019
    Posts:
    6
    Hi,

    I have just installed the latest Unity (2019.3.0b4) in order to solve the access violation issue when dealing with large compute buffer with the graphics API set to Vulkan.

    With the latest version, I don't have the memory access violation issue anymore. However, I just found that I cannot read partially from the compute buffer with the function GetData() anymore. Specifically:

    Code (CSharp):
    1. public void GetData(Array data, int managedBufferStartIndex, int computeBufferStartIndex, int count);
    It seems the read back data always start from index 0 of the compute buffer no matter what the third argument (i.e. computeBufferStartIndex) is set to be.

    Is anyone having the same issue with the GetData function?

    Thanks.
    TC
     
    Last edited: Oct 14, 2019
  2. yasirkula

    yasirkula

    Joined:
    Aug 1, 2011
    Posts:
    2,879
    Same thing happened to me today. Did you create an issue for it?