Instance Property

source

The source code for the shader.

Declaration

var source: String? { get set }

Discussion

The source code for a shader object can be updated at runtime. However, recompiling the fragment shader can be an expensive operation.