SKShader.FromShaderSourceCode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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