Class GraphicsResourceAllocatorExtensions
Extensions for the GraphicsResourceAllocator.
public static class GraphicsResourceAllocatorExtensions
- Inheritance
-
objectGraphicsResourceAllocatorExtensions
Methods
GetTemporaryTexture2D(GraphicsResourceAllocator, TextureDescription)
Gets a Texture output for the specified description.
public static Texture GetTemporaryTexture2D(this GraphicsResourceAllocator allocator, TextureDescription description)
Parameters
allocatorGraphicsResourceAllocatorThe allocator.
descriptionTextureDescriptionThe description.
Returns
GetTemporaryTexture2D(GraphicsResourceAllocator, int, int, PixelFormat, MipMapCount, TextureFlags, int)
Gets a Texture output for the specified description.
public static Texture GetTemporaryTexture2D(this GraphicsResourceAllocator allocator, int width, int height, PixelFormat format, MipMapCount mipCount, TextureFlags flags = TextureFlags.ShaderResource | TextureFlags.RenderTarget, int arraySize = 1)
Parameters
allocatorGraphicsResourceAllocatorThe allocator.
widthintThe width.
heightintThe height.
formatPixelFormatDescribes the format to use.
mipCountMipMapCountNumber of mipmaps, set to true to have all mipmaps, set to an int >=1 for a particular mipmap count.
flagsTextureFlagsSets the texture flags (for unordered access...etc.)
arraySizeintSize of the texture 2D array, default to 1.
Returns
GetTemporaryTexture2D(GraphicsResourceAllocator, int, int, PixelFormat, TextureFlags, int)
Gets a Texture output for the specified description with a single mipmap.
public static Texture GetTemporaryTexture2D(this GraphicsResourceAllocator allocator, int width, int height, PixelFormat format, TextureFlags flags = TextureFlags.ShaderResource | TextureFlags.RenderTarget, int arraySize = 1)
Parameters
allocatorGraphicsResourceAllocatorThe allocator.
widthintThe width.
heightintThe height.
formatPixelFormatDescribes the format to use.
flagsTextureFlagsSets the texture flags (for unordered access...etc.)
arraySizeintSize of the texture 2D array, default to 1.