2 Replies
      Latest reply on Nov 10, 2019 6:02 PM by huzhifang
      Arnfried Griesert Level 1 Level 1 (10 points)

        The setTexture() method of a MTLComputeCommandEncoder allows us to use nil as a parameter.

        How can I check in the kernel function if the texture parameter is nil or not?


        In the documentation I see there is a function called 'is_null_texture'. But the compiler does not know this function. I included already all the header files like <metal_stdlib>, <metal_texture>, <metal_relational>, <metal_common> hoping this would solve the problem.

        Is this function maybe wrong in the documentation and has another syntax or does it not exist?