Class GraphicsResourceAllocatorExtensions
Extensions for the Graphics
- Inheritance
-
Graphics
Resource Allocator Extensions
Methods
GetTemporaryTexture2D(GraphicsResourceAllocator, TextureDescription)
Gets a Texture output for the specified description.
public static Texture GetTemporaryTexture2D(this GraphicsResourceAllocator allocator, TextureDescription description)
Parameters
allocator
GraphicsResource Allocator The allocator.
description
TextureDescription The 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
GraphicsResource Allocator The allocator.
width
intThe width.
height
intThe height.
format
PixelFormat Describes the format to use.
mipCount
MipMap Count Number of mipmaps, set to true to have all mipmaps, set to an int >=1 for a particular mipmap count.
flags
TextureFlags Sets 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
GraphicsResource Allocator The allocator.
width
intThe width.
height
intThe height.
format
PixelFormat Describes the format to use.
flags
TextureFlags Sets the texture flags (for unordered access...etc.)
arraySize
intSize of the texture 2D array, default to 1.