move image format over to core
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "framebuffer/gryphn_framebuffer.h"
|
#include "framebuffer/gryphn_framebuffer.h"
|
||||||
#include "utils/gryphn_bool.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 "utils/lists/gryphn_array_list.h"
|
||||||
#include "renderpass/metal_render_pass.h"
|
#include "renderpass/metal_render_pass.h"
|
||||||
#import <Metal/Metal.h>
|
#import <Metal/Metal.h>
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
#include "renderpass/gryphn_render_pass_descriptor.h"
|
#include "renderpass/gryphn_render_pass_descriptor.h"
|
||||||
#include "instance/gryphn_instance.h"
|
#include "instance/gryphn_instance.h"
|
||||||
#include "output_device/gryphn_output_device.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) {
|
gnReturnCode createMetalFramebuffer(gnFramebuffer framebuffer, gnOutputDevice device, gnFramebufferInfo info) {
|
||||||
framebuffer->framebuffer = malloc(sizeof(struct gnPlatformFramebuffer_t));
|
framebuffer->framebuffer = malloc(sizeof(struct gnPlatformFramebuffer_t));
|
||||||
|
|
||||||
|
27
projects/core/gryphn_image_format.h
Normal file
27
projects/core/gryphn_image_format.h
Normal 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;
|
@@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <utils/gryphn_image_format.h>
|
#include <core/gryphn_image_format.h>
|
||||||
#include <output_device/gryphn_output_device.h>
|
#include <output_device/gryphn_output_device.h>
|
||||||
#include <window_surface/gryphn_surface.h>
|
#include <window_surface/gryphn_surface.h>
|
||||||
#include "gryphn_handles.h"
|
#include "gryphn_handles.h"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "stdint.h"
|
#include "stdint.h"
|
||||||
#include "utils/gryphn_image_format.h"
|
#include "core/gryphn_image_format.h"
|
||||||
#include "core/gryphn_return_code.h"
|
#include "core/gryphn_return_code.h"
|
||||||
#include "core/src/output_device/gryphn_physical_output_device.h"
|
#include "core/src/output_device/gryphn_physical_output_device.h"
|
||||||
#include "gryphn_handles.h"
|
#include "gryphn_handles.h"
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "utils/gryphn_image_format.h"
|
#include "core/gryphn_image_format.h"
|
||||||
#include "core/gryphn_return_code.h"
|
#include "core/gryphn_return_code.h"
|
||||||
#include "utils/math/gryphn_vec3.h"
|
#include "utils/math/gryphn_vec3.h"
|
||||||
#include "core/src/output_device/gryphn_physical_output_device.h"
|
#include "core/src/output_device/gryphn_physical_output_device.h"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <gryphn_platform_include.h>
|
#include <gryphn_platform_include.h>
|
||||||
#include <utils/gryphn_image_format.h>
|
#include <core/gryphn_image_format.h>
|
||||||
#include <instance/gryphn_instance.h>
|
#include <instance/gryphn_instance.h>
|
||||||
#include "utils/math/gryphn_vec2.h"
|
#include "utils/math/gryphn_vec2.h"
|
||||||
|
|
||||||
|
Submodule projects/utils updated: 0e6b2dd8c5...ccfbc896b3
Reference in New Issue
Block a user