2023-02-10 15:56:10 +00:00
|
|
|
/************************************************************//**
|
|
|
|
*
|
|
|
|
* @file: mtl_surface.h
|
|
|
|
* @author: Martin Fouilleul
|
|
|
|
* @date: 25/12/2022
|
|
|
|
* @revision:
|
|
|
|
*
|
|
|
|
*****************************************************************/
|
|
|
|
#ifndef __MTL_SURFACE_H_
|
|
|
|
#define __MTL_SURFACE_H_
|
|
|
|
|
2023-03-01 10:37:33 +00:00
|
|
|
#include"graphics_internal.h"
|
2023-02-10 15:56:10 +00:00
|
|
|
|
|
|
|
#ifdef __OBJC__
|
2023-02-20 10:05:01 +00:00
|
|
|
#import<Metal/Metal.h>
|
2023-02-10 15:56:10 +00:00
|
|
|
#endif
|
|
|
|
|
2023-03-01 10:37:33 +00:00
|
|
|
mg_surface_data* mg_mtl_surface_create_for_window(mp_window window);
|
2023-02-10 15:56:10 +00:00
|
|
|
|
|
|
|
void* mg_mtl_surface_render_encoder(mg_surface surface);
|
|
|
|
void* mg_mtl_surface_compute_encoder(mg_surface surface);
|
|
|
|
void* mg_mtl_surface_layer(mg_surface surface);
|
|
|
|
void* mg_mtl_surface_drawable(mg_surface surface);
|
|
|
|
void* mg_mtl_surface_command_buffer(mg_surface surface);
|
|
|
|
|
|
|
|
#endif //__MTL_SURFACE_H_
|