Class ShaderCompilerClient
Inheritance
ShaderCompilerClient
Syntax
public class ShaderCompilerClient
Properties
IsOpen
Declaration
public bool IsOpen { get; }
Property Value
Methods
Close()
Declaration
Declaration
public void Compile(string src, ShaderCompilerPlatform platform, string name, string filepath, int startLine, out byte[] serializedVert, out byte[] serializedFrag, List<string> errors)
Parameters
Declaration
public BlobAssetReference<PrecompiledShaderPipeline> CompileShaderForPlatforms(string filepath, ShaderCompilerPlatform[] platforms)
Parameters
Returns
Declaration
public BlobAssetReference<PrecompiledShaderPipeline> CompileShaderForPlatforms(string src, ShaderCompilerPlatform[] platforms, string filepath, int startLine = 0, string name = null)
Parameters
Returns
Declaration
public static ShaderCompilerPlatform[] GetSupportedPlatforms(BuildTarget target, bool forceIncludeAllPlatform = false)
Parameters
Returns
Open(String)
Declaration
public void Open(string buildOutputPath)
Parameters
| Type |
Name |
Description |
| String |
buildOutputPath |
|
Preprocess(String, String, String, out String, out Int32, out UInt32[])
Declaration
public bool Preprocess(string shaderLabSrc, string filepath, string name, out string hlslSrc, out int startLine, out uint[] includeHash)
Parameters
Returns