public ShaderGenerator(object shader, ShaderGeneratorSettings settings) { this.shader = shader; EntryPointAttributes = settings.EntryPointAttributes; BindingFlagsWithContract = settings.BindingFlagsWithContract; BindingFlagsWithoutContract = settings.BindingFlagsWithoutContract; writer = new IndentedTextWriter(stringWriter); }
public ShaderGenerator(Delegate action, ShaderGeneratorSettings settings) : this(action.Target, settings) { this.action = action; }