Search Unity

GetNativeTexturePtr on MSAA RenderTexture

Discussion in 'General Graphics' started by Alan-Liu, Feb 7, 2017.

  1. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    391
    In my project, I create a RenderTexture, and call GetNativeTexturePtr and GetNativeDepthBufferPtr to pass these pointers to native plugin. I found the SampleDesc.count in D3D11_TEXTURE2D_DESC got from these pointers is always 1, regardless of setting antiAliasing of RenderTexture to 1, 2 or 8. I'm using Unity5.4.0f3. Is the behaviour by design(Unity don't allow pass msaa texture to native plugin?) or a bug?
     
    BigYe likes this.