redo MTLRenderPassDescriptor creation

This commit is contained in:
Greg Wells
2025-07-06 07:21:23 -04:00
parent df954d8522
commit b9cbdd3286
5 changed files with 38 additions and 35 deletions

View File

@@ -2,11 +2,15 @@
#include "framebuffer/gryphn_framebuffer.h"
#include "utils/gryphn_bool.h"
#include "utils/gryphn_image_format.h"
#include "utils/lists/gryphn_array_list.h"
#import <Metal/Metal.h>
#import <Metal/MTLRenderPass.h>
typedef MTLRenderPassDescriptor* mtlSubpass;
typedef struct gnPlatformFramebuffer_t {
MTLRenderPassDescriptor* framebuffer;
uint32_t subpassCount;
mtlSubpass* subpasses;
} gnPlatformFramebuffer;
gnBool isDepthFormat(gnImageFormat format);