https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkAttachmentDescription.html
typedef struct VkAttachmentDescription {
VkAttachmentDescriptionFlags flags;
VkFormat format;
VkSampleCountFlagBits samples;
VkAttachmentLoadOp loadOp;
VkAttachmentStoreOp storeOp;
VkAttachmentLoadOp stencilLoadOp;
VkAttachmentStoreOp stencilStoreOp;
VkImageLayout initialLayout;
VkImageLayout finalLayout;
} VkAttachmentDescription;
这样 load store action和programmable blending
vulkan上都有对应实现了
(vulkan还能单独操作stencil的load store。。。)
这样 这两步在unity上应该 都是跨平台支持的 不需要分平台支持了
下面就是metal2那些 feature 在vulkan上的实现。。。
这里八成是要分平台写 因为metal里面的那些关键字别的平台又没有对应。。