/// <summary> /// Function to assign a vertex shader state to the batch state. /// </summary> /// <param name="shader">The vertex shader and resources to assign, or <b>null</b> for a default vertex shader and states.</param> /// <returns>The fluent builder interface.</returns> public Gorgon2DBatchStateBuilder VertexShaderState(Gorgon2DShaderStateBuilder <GorgonVertexShader> shader) { _worker.VertexShaderState = shader?.Build(); return(this); }
/// <summary> /// Function to assign a pixel shader state to the batch state. /// </summary> /// <param name="shader">The pixel shader and resources to assign, or <b>null</b> for a default pixel shader and states.</param> /// <returns>The fluent builder interface.</returns> public Gorgon2DBatchStateBuilder PixelShaderState(Gorgon2DShaderStateBuilder <GorgonPixelShader> shader) { _worker.PixelShaderState = shader?.Build(); return(this); }