C# Класс Myre.Graphics.ResourceContext

Provides mechanisms for renderer components to validate their input resources and define their output resources.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
DefineInput ( string name ) : void

Informs the render plan that this component wants the specified resource as input.

DefineOutput ( ResourceInfo resourceInfo, bool isLeftSet = true ) : void
DefineOutput ( string name, bool isLeftSet, RenderTarget2D>.Action finaliser, Myre.Graphics.RenderTargetInfo format ) : void

Informs the renderer of a resource this component is generating.

DefineOutput ( string name, bool isLeftSet = true, RenderTarget2D>.Action finaliser = null, int width, int height, SurfaceFormat surfaceFormat = SurfaceFormat.Color, DepthFormat depthFormat = DepthFormat.None, int multiSampleCount, bool mipMap = false, RenderTargetUsage usage = RenderTargetUsage.DiscardContents ) : void

Informs the renderer of a resource this component is generating.

ResourceContext ( ResourceInfo availableResources, ResourceInfo setRenderTargets ) : System

Описание методов

DefineInput() публичный Метод

Informs the render plan that this component wants the specified resource as input.
public DefineInput ( string name ) : void
name string The name of the resource.
Результат void

DefineOutput() публичный Метод

public DefineOutput ( ResourceInfo resourceInfo, bool isLeftSet = true ) : void
resourceInfo ResourceInfo
isLeftSet bool
Результат void

DefineOutput() публичный Метод

Informs the renderer of a resource this component is generating.
public DefineOutput ( string name, bool isLeftSet, RenderTarget2D>.Action finaliser, Myre.Graphics.RenderTargetInfo format ) : void
name string The name of the resource.
isLeftSet bool true if this component will leave the render target set on the device; else false.
finaliser RenderTarget2D>.Action A cleanup method, called when the resource is no longer needed. null for the default finaliser.
format Myre.Graphics.RenderTargetInfo The format of the render target.
Результат void

DefineOutput() публичный Метод

Informs the renderer of a resource this component is generating.
public DefineOutput ( string name, bool isLeftSet = true, RenderTarget2D>.Action finaliser = null, int width, int height, SurfaceFormat surfaceFormat = SurfaceFormat.Color, DepthFormat depthFormat = DepthFormat.None, int multiSampleCount, bool mipMap = false, RenderTargetUsage usage = RenderTargetUsage.DiscardContents ) : void
name string The name of the resource.
isLeftSet bool true if this component will leave the render target set on the device; else false.
finaliser RenderTarget2D>.Action A cleanup method, called when the resource is no longer needed. null for the default finaliser.
width int The width of the render target.
height int The height of the render target.
surfaceFormat SurfaceFormat The surface format of the render target.
depthFormat DepthFormat The depth format of the render target.
multiSampleCount int The multi sample count of the render target.
mipMap bool The number of mip map levels of the render target.
usage RenderTargetUsage The render target usage of the render target.
Результат void

ResourceContext() публичный Метод

public ResourceContext ( ResourceInfo availableResources, ResourceInfo setRenderTargets ) : System
availableResources ResourceInfo
setRenderTargets ResourceInfo
Результат System