C# Class Myre.Graphics.ResourceContext

Provides mechanisms for renderer components to validate their input resources and define their output resources.
Afficher le fichier Open project: TomGillen/Myre Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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

Method Details

DefineInput() public méthode

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.
Résultat void

DefineOutput() public méthode

public DefineOutput ( ResourceInfo resourceInfo, bool isLeftSet = true ) : void
resourceInfo ResourceInfo
isLeftSet bool
Résultat void

DefineOutput() public méthode

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.
Résultat void

DefineOutput() public méthode

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.
Résultat void

ResourceContext() public méthode

public ResourceContext ( ResourceInfo availableResources, ResourceInfo setRenderTargets ) : System
availableResources ResourceInfo
setRenderTargets ResourceInfo
Résultat System