create info and create function
This commit is contained in:
9
src/core/framebuffer/gryphn_framebuffer.c
Normal file
9
src/core/framebuffer/gryphn_framebuffer.c
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#include "gryphn_framebuffer.h"
|
||||||
|
|
||||||
|
gnReturnCode gnCreateFramebuffer(struct gnFramebuffer_t* framebuffer, struct gnOutputDevice_t* device, struct gnFramebufferInfo_t framebufferInfo) {
|
||||||
|
framebuffer->device = device;
|
||||||
|
}
|
||||||
|
|
||||||
|
void gnDestroyFramebuffer(struct gnFramebuffer_t *framebuffer) {
|
||||||
|
|
||||||
|
}
|
@@ -1,5 +1,18 @@
|
|||||||
#pragma once
|
#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 {
|
typedef struct gnFramebuffer_t {
|
||||||
|
struct gnPlatformFramebuffer_t* framebuffer;
|
||||||
|
struct gnOutputDevice_t* device;
|
||||||
} gnFramebuffer;
|
} gnFramebuffer;
|
||||||
|
|
||||||
|
gnReturnCode gnCreateFramebuffer(struct gnFramebuffer_t* framebuffer, struct gnOutputDevice_t* device, struct gnFramebufferInfo_t framebufferInfo);
|
||||||
|
void gnDestroyFramebuffer(struct gnFramebuffer_t* framebuffer);
|
||||||
|
Reference in New Issue
Block a user