f16
Represents a 16-bit floating point value (half precision) Warning: this type may not be natively supported by your hardware, or its usage may be suboptimal
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Struct
- Namespace: Unity.Burst.Intrinsics
- Assembly: UnityEngine.BurstModule
- Implements: IEquatable<f16>
public readonly struct f16 : IEquatable<f16>
Constructors
Constructor | Description |
|---|---|
| f16(System.Single) | Constructs a half value from a float value. |
| f16(Unity.Burst.Intrinsics.f16) | Constructs a half value from a half value. |
Methods
Method | Description |
|---|---|
| Equals | Returns true if the half is equal to a given half, false otherwise. |
| GetHashCode | Returns a hash code for the half. |
Operators
Operator | Description |
|---|---|
| operator == | Returns whether two f16 values are equal. |
| operator != | Returns whether two f16 values are different. |