Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Metal Compute shaders

Discussion in '2017.3 Beta' started by cstenson, Oct 17, 2017.

  1. cstenson

    cstenson

    Joined:
    Dec 10, 2015
    Posts:
    3
    First of all I have seen some big improwments and bug fixes when it comes to computeshaders in this version. Thanks!

    However I have a problem accessing the color of a texture in a compute shader. It works with textures added with computeShader.SetTexture. However when putting in a render texture with commandBuffer.SetComputeTextureParam the texture is only of color (0,0,0,0). This works fine on Windows with DX11. Any ideas on how to solve it?

    Seems like the texture isn't set in the computeshader at the time the camera is rendering. Is this a bug or I'm I missing something?

    Didn't found an existing thread concerning Metal API in this beta forum. Even if this post is only a minor one I guess more thing regarding Metal will come:)
     
    Last edited: Oct 17, 2017
    LaureneTvl likes this.
  2. martonekler

    martonekler

    Unity Technologies

    Joined:
    Feb 5, 2015
    Posts:
    31
    Hi!

    We are not aware of such issue. Could you file a bugreport and submit repro project?

    Thanks
    Marton