Freigeben über


Element.IsCompatible(Element) Method

Definition

Check if the current Element is compatible with another Element.

[Android.Runtime.Register("isCompatible", "(Landroid/renderscript/Element;)Z", "GetIsCompatible_Landroid_renderscript_Element_Handler")]
public virtual bool IsCompatible (Android.Renderscripts.Element? e);
[<Android.Runtime.Register("isCompatible", "(Landroid/renderscript/Element;)Z", "GetIsCompatible_Landroid_renderscript_Element_Handler")>]
abstract member IsCompatible : Android.Renderscripts.Element -> bool
override this.IsCompatible : Android.Renderscripts.Element -> bool

Parameters

e
Element

The Element to check compatibility with.

Returns

boolean true if the Elements are compatible, otherwise false.

Attributes

Remarks

Check if the current Element is compatible with another Element. Primitive Elements are compatible if they share the same underlying size and type (i.e. U8 is compatible with A_8). User-defined Elements must be equal in order to be compatible. This requires strict name equivalence for all sub-Elements (in addition to structural equivalence).

Java documentation for android.renderscript.Element.isCompatible(android.renderscript.Element).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to