Show / Hide Table of Contents

Struct Viewport

Describes a 3-dimensional region.

Implements
System.IEquatable<Viewport>
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public struct Viewport : IEquatable<Viewport>

Constructors

Viewport(Single, Single, Single, Single, Single, Single)

Constructs a new Viewport.

Declaration
public Viewport(float x, float y, float width, float height, float minDepth, float maxDepth)
Parameters
Type Name Description
System.Single x

The minimum X value.

System.Single y

The minimum Y value.

System.Single width

The width.

System.Single height

The height.

System.Single minDepth

The minimum depth.

System.Single maxDepth

The maximum depth.

Fields

Height

The height.

Declaration
public float Height
Field Value
Type Description
System.Single

MaxDepth

The maximum depth.

Declaration
public float MaxDepth
Field Value
Type Description
System.Single

MinDepth

The minimum depth.

Declaration
public float MinDepth
Field Value
Type Description
System.Single

Width

The width.

Declaration
public float Width
Field Value
Type Description
System.Single

X

The minimum X value.

Declaration
public float X
Field Value
Type Description
System.Single

Y

The minimum Y value.

Declaration
public float Y
Field Value
Type Description
System.Single

Methods

Equals(Viewport)

Element-wise equality.

Declaration
public bool Equals(Viewport other)
Parameters
Type Name Description
Viewport other

The instance to compare to.

Returns
Type Description
System.Boolean

True if all elements are equal; false otherswise.

GetHashCode()

Returns the hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A 32-bit signed integer that is the hash code for this instance.

Overrides
System.ValueType.GetHashCode()

Implements

System.IEquatable<T>
Back to top