private static IShaderConfig GetShader(string shaderFile) { var shaderDataFilePath = Path.Combine(ShaderCache.ShaderPathRoot, "Common"); return(new Shader(DefinitionHelper.FromFile(Path.Combine(shaderDataFilePath, shaderFile)))); }
protected ShaderFromFile FromFile(string shaderFileName, string profile = "ps_3_0", string entryPoint = "main", string compilerOptions = null) { return(DefinitionHelper.FromFile(Path.Combine(ShaderDataFilePath, shaderFileName), profile, entryPoint, compilerOptions)); }
private static IShaderConfig GetShader() { var shaderDataFilePath = Path.Combine(ShaderCache.ShaderPathRoot, "Common"); return(new Shader(DefinitionHelper.FromFile(Path.Combine(shaderDataFilePath, "MergeChromaYZFromSource.hlsl")))); }