kinda start to fix render pass descriptors in metal
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
#pragma once
|
||||
#include "renderpass/gryphn_render_pass_descriptor.h"
|
||||
#import <Metal/MTLRenderPass.h>
|
||||
#import <Metal/Metal.h>
|
||||
|
||||
typedef MTLRenderPassDescriptor* mtlSubpass;
|
||||
|
||||
typedef struct mtlColorAttachmentCopyInfo {
|
||||
MTLPixelFormat format;
|
||||
|
||||
uint32_t attachmentIndex;
|
||||
int resolveAttachmentIndex; // -1 means no resolve attachment
|
||||
} mtlColorAttachmentCopyInfo;
|
||||
@@ -12,6 +15,7 @@ typedef struct mtlColorAttachmentCopyInfo {
|
||||
typedef struct mtlSubpassCopyInfo {
|
||||
uint32_t colorAttachmentCount;
|
||||
mtlColorAttachmentCopyInfo* colorAttachments;
|
||||
int depthAttachmentIndex; // -1 means no depth attachment
|
||||
} mtlSubpassCopyInfo;
|
||||
|
||||
typedef struct gnPlatformRenderPassDescriptor_t {
|
||||
|
||||
Reference in New Issue
Block a user