コード例 #1
0
 public VkAttachmentDescription(
     VkFormat format,
     VkSampleCountFlags samples,
     VkAttachmentLoadOp loadOp,
     VkAttachmentStoreOp storeOp,
     VkAttachmentLoadOp stencilLoadOp,
     VkAttachmentStoreOp stencilStoreOp,
     VkImageLayout initialLayout,
     VkImageLayout finalLayout,
     VkAttachmentDescriptionFlags flags = VkAttachmentDescriptionFlags.None)
 {
     this.flags          = flags;
     this.format         = format;
     this.samples        = samples;
     this.loadOp         = loadOp;
     this.storeOp        = storeOp;
     this.stencilLoadOp  = stencilLoadOp;
     this.stencilStoreOp = stencilStoreOp;
     this.initialLayout  = initialLayout;
     this.finalLayout    = finalLayout;
 }
コード例 #2
0
 public VkAttachmentDescription(
     VkFormat format,
     VkSampleCountFlags samples         = VkSampleCountFlags.Count1,
     VkAttachmentLoadOp loadOp          = VkAttachmentLoadOp.Clear,
     VkAttachmentStoreOp storeOp        = VkAttachmentStoreOp.Store,
     VkAttachmentLoadOp stencilLoadOp   = VkAttachmentLoadOp.DontCare,
     VkAttachmentStoreOp stencilStoreOp = VkAttachmentStoreOp.DontCare,
     VkImageLayout initialLayout        = VkImageLayout.Undefined,
     VkImageLayout finalLayout          = VkImageLayout.PresentSrcKHR,
     VkAttachmentDescriptionFlags flags = VkAttachmentDescriptionFlags.None)
 {
     this.flags          = flags;
     this.format         = format;
     this.samples        = samples;
     this.loadOp         = loadOp;
     this.storeOp        = storeOp;
     this.stencilLoadOp  = stencilLoadOp;
     this.stencilStoreOp = stencilStoreOp;
     this.initialLayout  = initialLayout;
     this.finalLayout    = finalLayout;
 }