Interface MPSSVGFTextureAllocator

  • All Known Implementing Classes:
    MPSSVGFDefaultTextureAllocator

    public interface MPSSVGFTextureAllocator
    Protocol dictating how texture allocator objects should operate so that they can be used by an MPSSVGFDenoiser object to allocate and reuse intermediate and output textures during the denoising process.
    • Method Detail

      • returnTexture

        void returnTexture​(MTLTexture texture)
        Return a texture to the allocator. The allocator operate in such a way as to reduce the allocation cost should another texture be requested with the same width, height, and pixel format.
      • textureWithPixelFormatWidthHeight

        MTLTexture textureWithPixelFormatWidthHeight​(long pixelFormat,
                                                     long width,
                                                     long height)
        Returns an autoreleased Metal 2D texture with a matching pixel format, width, and height.