Delegate GraphicsResourceAllocator.CreateResourceDelegate<TResource, TDescription>
Represents a method that creates a Graphics Resource of type TResource based on the specified
description and pixel format.
protected delegate TResource GraphicsResourceAllocator.CreateResourceDelegate<TResource, TDescription>(TDescription description, PixelFormat viewFormat)
Parameters
descriptionTDescriptionThe description that specifies the details of the Graphics Resource to be created.
viewFormatPixelFormatThe data format to be used for SRVs on the Graphics Resource.
Returns
- TResource
A new instance of
TResourcecreated based on the provided description and SRV data format.
Type Parameters
TResourceThe type of the Graphics Resource to be created.
TDescriptionThe type of the description used to define the Graphics Resource.
- Extension Methods