Example #1
0
 public ShaderFilter(IShaderHandle shader, params IFilter <ITextureOutput <IBaseTexture> >[] inputFilters)
     : base(shader.CalcSize(inputFilters.Select(f => f.Size()).ToList()), shader.OutputFormat, inputFilters)
 {
     Shader = shader;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShaderProgram"/> class.
 /// </summary>
 /// <param name="paramsByName">Dictionary of the shader parameters.</param>
 /// <param name="gpuHandle">The <see cref="IShaderHandle"/>.</param>
 internal ShaderProgram(Dictionary <string, ShaderParamInfo> paramsByName, IShaderHandle gpuHandle)
 {
     GpuHandle    = gpuHandle;
     ParamsByName = paramsByName;
 }