Interface MPSSVGFTextureAllocator
-
- All Known Implementing Classes:
MPSSVGFDefaultTextureAllocator
public interface MPSSVGFTextureAllocatorProtocol 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreturnTexture(MTLTexture texture)Return a texture to the allocator.MTLTexturetextureWithPixelFormatWidthHeight(long pixelFormat, long width, long height)Returns an autoreleased Metal 2D texture with a matching pixel format, width, and height.
-
-
-
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.
-
-