/// <summary> /// Import an external texture to the Render Graph. /// Any pass writing to an imported texture will be considered having side effects and can't be automatically pruned. /// </summary> /// <param name="rt">External RTHandle that needs to be imported.</param> /// <param name="shaderProperty">Optional property that allows you to specify a Shader property name to use for automatic resource binding.</param> /// <returns>A new TextureHandle.</returns> public TextureHandle ImportTexture(RTHandle rt, int shaderProperty = 0) { return(m_Resources.ImportTexture(rt, shaderProperty)); }
/// <summary> /// Import an external texture to the Render Graph. /// Any pass writing to an imported texture will be considered having side effects and can't be automatically culled. /// </summary> /// <param name="rt">External RTHandle that needs to be imported.</param> /// <returns>A new TextureHandle.</returns> public TextureHandle ImportTexture(RTHandle rt) { return(m_Resources.ImportTexture(rt)); }