Table of Contents

Delegate GraphicsResourceAllocator.CreateResourceDelegate<TResource, TDescription>

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

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

description TDescription

The description that specifies the details of the Graphics Resource to be created.

viewFormat PixelFormat

The data format to be used for SRVs on the Graphics Resource.

Returns

TResource

A new instance of TResource created based on the provided description and SRV data format.

Type Parameters

TResource

The type of the Graphics Resource to be created.

TDescription

The type of the description used to define the Graphics Resource.

Extension Methods