Click or drag to resize
DigitalRuneRenderTargetFormat Structure
Describes the size and format of a texture or a render target.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public struct RenderTargetFormat : IEquatable<RenderTargetFormat>

The RenderTargetFormat type exposes the following members.

Constructors
  NameDescription
Public methodRenderTargetFormat(RenderTarget2D)
Initializes a new instance of the RenderTargetFormat struct.
Public methodRenderTargetFormat(RenderTargetCube)
Initializes a new instance of the RenderTargetFormat struct.
Public methodRenderTargetFormat(Texture2D)
Initializes a new instance of the RenderTargetFormat struct.
Public methodRenderTargetFormat(TextureCube)
Initializes a new instance of the RenderTargetFormat struct.
Public methodRenderTargetFormat(NullableInt32, NullableInt32, NullableBoolean, NullableSurfaceFormat, NullableDepthFormat)
Initializes a new instance of the RenderTargetFormat struct.
Public methodRenderTargetFormat(NullableInt32, NullableInt32, NullableBoolean, NullableSurfaceFormat, NullableDepthFormat, NullableInt32, NullableRenderTargetUsage)
Initializes a new instance of the RenderTargetFormat struct.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(RenderTargetFormat)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsCompatibleWith
Determines whether this instance is compatible with the specified render target format.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares RenderTargetFormat to determine whether they are the same.
Public operatorStatic memberInequality
Compares RenderTargetFormat to determine whether they are different.
Top
Properties
  NameDescription
Public propertyDepthStencilFormat
Gets or sets the depth/stencil buffer format.
Public propertyHeight
Gets or sets the height (in pixels).
Public propertyMipmap
Gets or sets a value indicating whether the texture uses mipmapping.
Public propertyMultiSampleCount
Gets or sets the number of sample locations during multisampling.
Public propertyRenderTargetUsage
Gets or sets the render target usage.
Public propertySurfaceFormat
Gets or sets the surface format.
Public propertyWidth
Gets or sets the width (in pixels).
Top
Remarks

All properties are Nullable. A value of means that the property is undefined. For example, if Width is , then it is undefined and the user may choose any suitable width.

A RenderTargetFormat can be also be used to describe cube maps. In this case the Width defines the size of the cube map and Height should be ignored because cube map faces are always quadratic.

See Also