Contents

init(source:)

Initializes a new shader object using the specified source code.

Declaration

init(source: String)

Parameters

  • source:

    A string that holds the initial source for the shader.

Return Value

An initialized shader object.

See Also

Creating a Shader