[Fix] (MG_Backend/DirectVulkan): fixing Photon v1.1

- Flatten DailyWeatherVariation interface varyings
- Correct internal-format component counts
- Preserve GL draw-buffer slot semantics in render pass creation
- relax GL_NONE / vec4-to-RGB pipeline checks
This commit is contained in:
2026-05-09 09:56:45 +08:00
parent 407d4344c4
commit 39c5b28dfb
11 changed files with 1876 additions and 22 deletions
@@ -48,6 +48,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
Vector<TrackedAttachmentLayoutInfo> trackedAttachmentLayouts;
Uint32 attachmentCount = 0;
Uint32 colorAttachmentCount = 0;
Bool hasDepthStencilAttachment = false;
IntVec2 extent = {0, 0};
Uint32 subpass = 0;
@@ -62,6 +63,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
std::swap(trackedAttachmentLayouts, that.trackedAttachmentLayouts);
std::swap(attachmentCount, that.attachmentCount);
std::swap(colorAttachmentCount, that.colorAttachmentCount);
std::swap(hasDepthStencilAttachment, that.hasDepthStencilAttachment);
std::swap(extent, that.extent);
std::swap(subpass, that.subpass);
}
@@ -74,6 +76,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
const Vector<TrackedAttachmentLayoutInfo>& trackedAttachmentLayouts,
Uint32 attachmentCount,
Uint32 colorAttachmentCount,
Bool hasDepthStencilAttachment,
IntVec2 extent, int subpass):
hash(hash),
renderPass(renderpass),
@@ -83,6 +86,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
trackedAttachmentLayouts(Move(trackedAttachmentLayouts)),
attachmentCount(attachmentCount),
colorAttachmentCount(colorAttachmentCount),
hasDepthStencilAttachment(hasDepthStencilAttachment),
extent(extent),
subpass(subpass)
{}