示例#1
0
        public ShaderGenerator(object shader, ShaderGeneratorSettings settings)
        {
            this.shader = shader;

            EntryPointAttributes = settings.EntryPointAttributes;

            BindingFlagsWithContract    = settings.BindingFlagsWithContract;
            BindingFlagsWithoutContract = settings.BindingFlagsWithoutContract;

            writer = new IndentedTextWriter(stringWriter);
        }
示例#2
0
 public ShaderGenerator(Delegate action, ShaderGeneratorSettings settings) : this(action.Target, settings)
 {
     this.action = action;
 }