Пример #1
0
 protected abstract void ClearColorTargetCore(uint index, RgbaFloat clearColor);
 /// <summary>
 /// Constructs a new <see cref="BlendStateDescription"/>,
 /// </summary>
 /// <param name="blendFactor">The constant blend color.</param>
 /// <param name="attachmentStates">The blend attachment states.</param>
 public BlendStateDescription(RgbaFloat blendFactor, params BlendAttachmentDescription[] attachmentStates)
 {
     BlendFactor      = blendFactor;
     AttachmentStates = attachmentStates;
 }
Пример #3
0
 /// <summary>
 /// Clears the color target at the given index of the active <see cref="Framebuffer"/>.
 /// The index given must be less than the number of color attachments in the active <see cref="Framebuffer"/>.
 /// </summary>
 /// <param name="index">The color target index.</param>
 /// <param name="clearColor">The value to clear the target to.</param>
 public void ClearColorTarget(uint index, RgbaFloat clearColor)
 {
     ClearColorTargetCore(index, clearColor);
 }