Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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);
 }