Click or drag to resize
DigitalRuneRenderTargetFormat Constructor (NullableInt32, NullableInt32, NullableBoolean, NullableSurfaceFormat, NullableDepthFormat)
Initializes a new instance of the RenderTargetFormat struct.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public RenderTargetFormat(
	Nullable<int> width,
	Nullable<int> height,
	Nullable<bool> mipmap,
	Nullable<SurfaceFormat> surfaceFormat,
	Nullable<DepthFormat> depthStencilFormat
)

Parameters

width
Type: SystemNullableInt32
The width or if the width is undefined.
height
Type: SystemNullableInt32
The height or if the height is undefined.
mipmap
Type: SystemNullableBoolean
to enable a full mipmap chain. to disable mipmapping. if the mipmapping behavior is undefined.
surfaceFormat
Type: SystemNullableSurfaceFormat
The surface format or if the surface format is undefined.
depthStencilFormat
Type: SystemNullableDepthFormat
The depth/stencil format or if the depth/stencil format is undefined.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionwidth or height is negative or 0.
Remarks
The MultiSampleCount is initialized with 0. The RenderTargetUsage is initialized with DiscardContents.
See Also