Added in API level 34

Varying


open class Varying
kotlin.Any
   ↳ android.graphics.MeshSpecification.Varying

Data class to represent a single varying variable. A Varying variable can be altered by the vertex shader defined on the mesh but not by the fragment shader defined by AGSL. See https://developer.android.com/develop/ui/views/graphics/agsl for more information regarding Android Graphics Shader Language. This is consumed as part of MeshSpecification#make(Attribute[], int, Varying[], String, String, ColorSpace, int) to create a MeshSpecification instance.

Summary

Public constructors
Varying(type: Int, name: String)

Public methods
open String

Return the name of this Varying

open Int

Return the corresponding data type for this Varying.

open String

Public constructors

Public methods

getName

Added in API level 34
open fun getName(): String

Return the name of this Varying

Return
String This value cannot be null.

toString

Added in API level 34
open fun toString(): String
Return
String a string representation of the object.