Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

GetData does not work with Vulkan

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

  1. LionelTC

    LionelTC

    Joined:
    Oct 14, 2019
    Posts:
    1
    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