Version: Unity 6.6 Beta (6000.6)
LanguageEnglish
  • C#

f16

struct in Unity.Burst.Intrinsics

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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

Constructors

Constructor Description
f16Constructs a half value from a half value.

Public Methods

Method Description
EqualsReturns true if the f16 is equal to a given f16, false otherwise.
GetHashCodeReturns a hash code for the half.

Operators

Operator Description
operator !=Returns whether two f16 values are different.
operator ==Returns whether two f16 values are equal.