public static IDXSamplerStateIn CreateSamplerStateInput(this IPluginHost host, InputAttribute attribute, Type type) { IDXSamplerStateIn result = null; host.CreateSamplerStateInput((TSliceMode)attribute.SliceMode, (TPinVisibility)attribute.Visibility, out result); SetInputProperties(result, attribute); return(result); }
public static IDXSamplerStateIn CreateSamplerStateInput(this IPluginHost host, InputAttribute attribute, Type type) { IDXSamplerStateIn result = null; host.CreateSamplerStateInput((TSliceMode)attribute.SliceMode, (TPinVisibility)attribute.Visibility, out result); result.Order = attribute.Order; result.AutoValidate = attribute.AutoValidate; return(result); }
/// <summary> /// Constructor to create the DX pins. /// </summary> /// <param name="host">The plugin host to create the pins on.</param> /// <param name="createRenderState">Create a render state pin?</param> /// <param name="createSamplerState">Create a sampler state pin?</param> public DXLayerOutPluginBase(IPluginHost host, bool createRenderState, bool createSamplerState) { if (createRenderState) { host.CreateRenderStateInput(TSliceMode.Dynamic, TPinVisibility.True, out FRenderStatePin); FRenderStatePin.Order = -2; } if (createSamplerState) { host.CreateSamplerStateInput(TSliceMode.Dynamic, TPinVisibility.True, out FSamplerStatePin); FSamplerStatePin.Order = -1; } host.CreateLayerOutput("Layer", TPinVisibility.True, out FLayerOut); }