kinda start to fix render pass descriptors in metal

This commit is contained in:
Gregory Wells
2025-07-24 08:29:05 -04:00
parent ddf23f71fc
commit 1d23dd0b80
11 changed files with 61 additions and 39 deletions

View File

@@ -7,9 +7,18 @@
#import <Metal/Metal.h>
#import <Metal/MTLRenderPass.h>
typedef struct mtlClearCopy {
gnBool clear;
MTLRenderPassColorAttachmentDescriptor* descriptor;
} mtlClearCopy;
typedef struct gnPlatformFramebuffer_t {
uint32_t subpassCount;
mtlSubpass* subpasses;
uint32_t* depthAttachmentIndicies;
uint32_t clearCopyCount;
mtlClearCopy* clearCopies;
} gnPlatformFramebuffer;
gnBool isDepthFormat(gnImageFormat format);