Class GraphicsResourceAllocatorExtensions
Extensions for the GraphicsResourceAllocator.
public static class GraphicsResourceAllocatorExtensions
- Inheritance
-
GraphicsResourceAllocatorExtensions
Methods
GetTemporaryTexture2D(GraphicsResourceAllocator, TextureDescription)
Gets a Texture output for the specified description.
public static Texture GetTemporaryTexture2D(this GraphicsResourceAllocator allocator, TextureDescription description)
Parameters
allocator
GraphicsResourceAllocatorThe allocator.
description
TextureDescriptionThe 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
allocator
GraphicsResourceAllocatorThe allocator.
width
intThe width.
height
intThe height.
format
PixelFormatDescribes the format to use.
mipCount
MipMapCountNumber of mipmaps, set to true to have all mipmaps, set to an int >=1 for a particular mipmap count.
flags
TextureFlagsSets the texture flags (for unordered access...etc.)
arraySize
intSize 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
allocator
GraphicsResourceAllocatorThe allocator.
width
intThe width.
height
intThe height.
format
PixelFormatDescribes the format to use.
flags
TextureFlagsSets the texture flags (for unordered access...etc.)
arraySize
intSize of the texture 2D array, default to 1.