Contents

init(name:semantic:float2:)

Initializes a material property with a 2-component vector value.

Declaration

convenience init(name: String, semantic: MDLMaterialSemantic, float2 value: vector_float2)

Parameters

  • name:

    A descriptive name for the material property. For details, see the Name property.

  • semantic:

    The semantic meaning for the material property’s value. For details, see the Semantic property.

  • value:

    The 2-component floating-point vector value for the material property.

Return Value

A new material property object whose type property is MDLMaterialPropertyType.float2.

See Also

Creating a Material Property