Table of Contents

Method Create

Namespace
Pinwheel.Vista.Graph
Assembly
Pinwheel.Vista.Runtime.dll

Create(int, int, RenderTextureFormat)

Creates a render-target descriptor for the requested resolution and format.

public static DataPool.RtDescriptor Create(int width, int height, RenderTextureFormat format = RenderTextureFormat.RFloat)

Parameters

width int

The render target width in pixels.

height int

The render target height in pixels.

format RenderTextureFormat

The color format required by the output. The default matches Vista's common single channel height or mask textures.

Returns

DataPool.RtDescriptor

A descriptor that can be passed to CreateRenderTarget(RtDescriptor, string, bool).