Click or drag to resize
DigitalRuneRenderTargetFormat Constructor (NullableInt32, NullableInt32, NullableBoolean, NullableSurfaceFormat, NullableDepthFormat, NullableInt32, NullableRenderTargetUsage)
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,
	Nullable<int> multiSampleCount,
	Nullable<RenderTargetUsage> usage
)

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.
multiSampleCount
Type: SystemNullableInt32
The number of sample locations during multisampling or if the number of sample locations is undefined.
usage
Type: SystemNullableRenderTargetUsage
The render target usage or if the usage is undefined.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException width;The width must not be 0 or negative. or height;The height must not be 0 or negative.
ArgumentOutOfRangeExceptionwidth or height is negative or 0.
See Also