Compartilhar via


SKShader.FromShaderSourceCode Método

Definição

Sobrecargas

FromShaderSourceCode(String)

Cria um novo sombreador do código-fonte do sombreador fornecido.

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)

Cria um novo sombreador do código-fonte do sombreador fornecido.

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

Parâmetros

source
String

Retornos

Atributos

Aplica-se a

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

Parâmetros

source
String
uniforms
SKUniform[]

Retornos

Atributos

Aplica-se a