2022-02-25 05:34:36 +00:00
|
|
|
namespace MoonWorks.Graphics
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Describes the kind of attachments that will be used with this pipeline.
|
|
|
|
/// </summary>
|
|
|
|
public struct GraphicsPipelineAttachmentInfo
|
|
|
|
{
|
2022-02-25 16:15:48 +00:00
|
|
|
public ColorAttachmentDescription[] ColorAttachmentDescriptions;
|
|
|
|
public bool HasDepthStencilAttachment;
|
|
|
|
public TextureFormat DepthStencilFormat;
|
2022-03-02 21:57:30 +00:00
|
|
|
|
|
|
|
public GraphicsPipelineAttachmentInfo(
|
|
|
|
params ColorAttachmentDescription[] colorAttachmentDescriptions
|
|
|
|
) {
|
|
|
|
ColorAttachmentDescriptions = colorAttachmentDescriptions;
|
|
|
|
HasDepthStencilAttachment = false;
|
|
|
|
DepthStencilFormat = TextureFormat.D16;
|
|
|
|
}
|
|
|
|
|
|
|
|
public GraphicsPipelineAttachmentInfo(
|
|
|
|
TextureFormat depthStencilFormat,
|
|
|
|
params ColorAttachmentDescription[] colorAttachmentDescriptions
|
|
|
|
) {
|
|
|
|
ColorAttachmentDescriptions = colorAttachmentDescriptions;
|
|
|
|
HasDepthStencilAttachment = true;
|
|
|
|
DepthStencilFormat = depthStencilFormat;
|
|
|
|
}
|
2022-02-25 05:34:36 +00:00
|
|
|
}
|
|
|
|
}
|