create info and create function

This commit is contained in:
Greg Wells
2025-05-29 11:59:22 -04:00
parent 5403a2374b
commit 9a43b15fb7
2 changed files with 23 additions and 1 deletions

View File

@@ -1,5 +1,18 @@
#pragma once
#include "core/renderpass/gryphn_render_pass_descriptor.h"
#include "core/textures/gryphn_texture.h"
typedef struct gnFramebufferInfo_t {
struct gnRenderPassDescriptor_t* renderPassDescriptor;
uint32_t attachmentCount;
struct gnTexture_t* attachments;
gnUInt2 size;
} gnFramebufferInfo;
typedef struct gnFramebuffer_t {
struct gnPlatformFramebuffer_t* framebuffer;
struct gnOutputDevice_t* device;
} gnFramebuffer;
gnReturnCode gnCreateFramebuffer(struct gnFramebuffer_t* framebuffer, struct gnOutputDevice_t* device, struct gnFramebufferInfo_t framebufferInfo);
void gnDestroyFramebuffer(struct gnFramebuffer_t* framebuffer);