finish redoing render pass creation on metal
This commit is contained in:
@@ -2,8 +2,24 @@
|
||||
#include "renderpass/gryphn_render_pass_descriptor.h"
|
||||
#import <Metal/MTLRenderPass.h>
|
||||
|
||||
typedef MTLRenderPassDescriptor* mtlSubpass;
|
||||
|
||||
typedef struct mtlColorAttachmentCopyInfo {
|
||||
uint32_t attachmentIndex;
|
||||
int resolveAttachmentIndex; // -1 means no resolve attachment
|
||||
} mtlColorAttachmentCopyInfo;
|
||||
|
||||
typedef struct mtlSubpassCopyInfo {
|
||||
uint32_t colorAttachmentCount;
|
||||
mtlColorAttachmentCopyInfo* colorAttachments;
|
||||
} mtlSubpassCopyInfo;
|
||||
|
||||
typedef struct gnPlatformRenderPassDescriptor_t {
|
||||
MTLRenderPassDescriptor* passDescriptor;
|
||||
uint32_t subpassCount;
|
||||
mtlSubpass* subpasses;
|
||||
mtlSubpassCopyInfo* copyInfos;
|
||||
|
||||
|
||||
} gnPlatformRenderPassDescriptor;
|
||||
|
||||
gnReturnCode createMetalRenderPass(gnRenderPassDescriptor renderPass, gnDevice device, gnRenderPassDescriptorInfo info);
|
||||
|
||||
Reference in New Issue
Block a user