move image format over to core

This commit is contained in:
Gregory Wells
2025-08-03 11:47:59 -04:00
parent 99892c6cbd
commit 193fe6348c
8 changed files with 34 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#pragma once
#include "framebuffer/gryphn_framebuffer.h"
#include "utils/gryphn_bool.h"
#include "utils/gryphn_image_format.h"
#include "core/gryphn_image_format.h"
#include "utils/lists/gryphn_array_list.h"
#include "renderpass/metal_render_pass.h"
#import <Metal/Metal.h>

View File

@@ -3,7 +3,7 @@
#include "renderpass/gryphn_render_pass_descriptor.h"
#include "instance/gryphn_instance.h"
#include "output_device/gryphn_output_device.h"
#include "utils/gryphn_image_format.h"
#include "core/gryphn_image_format.h"
gnReturnCode createMetalFramebuffer(gnFramebuffer framebuffer, gnOutputDevice device, gnFramebufferInfo info) {
framebuffer->framebuffer = malloc(sizeof(struct gnPlatformFramebuffer_t));

View File

@@ -0,0 +1,27 @@
#pragma once
typedef enum gnImageFormat {
GN_FORMAT_NONE,
GN_FORMAT_BGRA8_SRGB,
GN_FORMAT_BGRA8,
GN_FORMAT_RGBA8_SRGB,
GN_FORMAT_D24S8_UINT,
GN_FORMAT_D32S8_UINT,
} gnImageFormat;
typedef enum gnColorSpace {
GN_COLOR_SPACE_NONE,
GN_COLOR_SPACE_SRGB_NONLINEAR
} gnColorSpace;
typedef enum gnImageSharingMode {
GN_SHARING_MODE_EXCLUSIVE, GN_SHARING_MODE_CONCURRENT
} gnImageSharingMode;
typedef enum gnImageLayout {
GN_LAYOUT_UNDEFINED,
GN_LAYOUT_PRESENTATION_QUEUE_IMAGE,
GN_LAYOUT_TRANSFER_DESTINATION,
GN_LAYOUT_DEPTH_STENCIL,
GN_LAYOUT_COLOR_ATTACHMENT
} gnImageLayout;

View File

@@ -1,5 +1,5 @@
#pragma once
#include <utils/gryphn_image_format.h>
#include <core/gryphn_image_format.h>
#include <output_device/gryphn_output_device.h>
#include <window_surface/gryphn_surface.h>
#include "gryphn_handles.h"

View File

@@ -1,6 +1,6 @@
#pragma once
#include "stdint.h"
#include "utils/gryphn_image_format.h"
#include "core/gryphn_image_format.h"
#include "core/gryphn_return_code.h"
#include "core/src/output_device/gryphn_physical_output_device.h"
#include "gryphn_handles.h"

View File

@@ -1,5 +1,5 @@
#pragma once
#include "utils/gryphn_image_format.h"
#include "core/gryphn_image_format.h"
#include "core/gryphn_return_code.h"
#include "utils/math/gryphn_vec3.h"
#include "core/src/output_device/gryphn_physical_output_device.h"

View File

@@ -1,6 +1,6 @@
#pragma once
#include <gryphn_platform_include.h>
#include <utils/gryphn_image_format.h>
#include <core/gryphn_image_format.h>
#include <instance/gryphn_instance.h>
#include "utils/math/gryphn_vec2.h"