SKShader.FromShaderSourceCode Method

Definition

Overloads

FromShaderSourceCode(String)

Creates a new shader from the provided shader source code.

FromShaderSourceCode(String, SKUniform[])

TCreates a new shader from the provided shader source code, and adds the specified uniform data storage units to it.

FromShaderSourceCode(String)

Creates a new shader from the provided shader source code.

[Foundation.Export("shaderWithSource:")]
public static SpriteKit.SKShader FromShaderSourceCode (string source);
static member FromShaderSourceCode : string -> SpriteKit.SKShader

Parameters

source
String

Returns

Attributes

Applies to

FromShaderSourceCode(String, SKUniform[])

TCreates a new shader from the provided shader source code, and adds the specified uniform data storage units to it.

[Foundation.Export("shaderWithSource:uniforms:")]
public static SpriteKit.SKShader FromShaderSourceCode (string source, SpriteKit.SKUniform[] uniforms);
static member FromShaderSourceCode : string * SpriteKit.SKUniform[] -> SpriteKit.SKShader

Parameters

source
String
uniforms
SKUniform[]

Returns

Attributes

Applies to