/// <summary> /// Function to assign a sampler to a compute shader on the pipeline. /// </summary> /// <param name="sampler">The sampler to assign.</param> /// <param name="index">[Optional] The index of the sampler.</param> /// <returns>The fluent interface for this builder.</returns> public GorgonDispatchCallBuilder SamplerState(GorgonSamplerStateBuilder sampler, int index = 0) => SamplerState(sampler.Build(), index);
/// <summary> /// Function to assign a sampler to a shader on the pipeline. /// </summary> /// <param name="shaderType">The type of shader to update.</param> /// <param name="sampler">The sampler to assign.</param> /// <param name="index">[Optional] The index of the sampler.</param> /// <returns>The fluent interface for this builder.</returns> /// <exception cref="NotSupportedException">Thrown if the <paramref name="shaderType"/> is not valid.</exception> /// <remarks> /// <para> /// <see cref="ShaderType.Compute"/> shaders are not supported in this method will throw an exception. /// </para> /// </remarks> public TB SamplerState(ShaderType shaderType, GorgonSamplerStateBuilder sampler, int index = 0) => SamplerState(shaderType, sampler.Build(), index);
/// <summary> /// Function to assign a sampler to a pixel shader on the pipeline. /// </summary> /// <param name="sampler">The sampler to assign.</param> /// <param name="index">[Optional] The index of the sampler.</param> /// <returns>The fluent interface for this builder.</returns> public GorgonStreamOutCallBuilder SamplerState(GorgonSamplerStateBuilder sampler, int index = 0) => SamplerState(sampler.Build(), index);