[]
Defines the viewport dimensions using float coordinates for (X, Y, Width, Height, MinDepth, MaxDepth).
public struct ViewportF : IEquatable<ViewportF>
Initializes a new instance of the ViewportF struct.
public ViewportF(RectF bounds)
bounds RectFA bounding box that defines the location and size of the viewport in a render target.
Initializes a new instance of the ViewportF struct.
public ViewportF(float x, float y, float width, float height, float minDepth, float maxDepth)
x floatThe x coordinate of the upper-left corner of the viewport in pixels.
y floatThe y coordinate of the upper-left corner of the viewport in pixels.
width floatThe width of the viewport in pixels.
height floatThe height of the viewport in pixels.
minDepth floatThe minimum depth of the clip volume.
maxDepth floatThe maximum depth of the clip volume.
Initializes a new instance of the ViewportF struct.
public ViewportF(float x, float y, float width, float height)
x floatThe x coordinate of the upper-left corner of the viewport in pixels.
y floatThe y coordinate of the upper-left corner of the viewport in pixels.
width floatThe width of the viewport in pixels.
height floatThe height of the viewport in pixels.
Height dimension of the viewport.
public float Height
Gets or sets the maximum depth of the clip volume.
public float MaxDepth
Gets or sets the minimum depth of the clip volume.
public float MinDepth
The size of the ViewportF type, in bytes.
public const int SizeInBytes = 24
Width dimension of the viewport.
public float Width
Position of the pixel coordinate of the upper-left corner of the viewport.
public float X
Position of the pixel coordinate of the upper-left corner of the viewport.
public float Y
Gets the size of this resource.
public RectF Bounds { get; set; }
Determines whether the specified ViewportF is equal to this instance.
public bool Equals(ViewportF other)
other ViewportFDetermines whether two instances of ViewportF are equal.
public static bool Equals(in ViewportF left, in ViewportF right)
Determines whether the specified object is equal to this instance.
public override bool Equals(object obj)
obj objectReturns a hash code for this instance.
public override int GetHashCode()
Retrieves a string representation of this object.
public override string ToString()
Determines if the specified values are equal.
public static bool operator ==(in ViewportF left, in ViewportF right)
Determines if the specified values are not equal.
public static bool operator !=(in ViewportF left, in ViewportF right)