orca/src/graphics/mtl_surface.h

26 lines
779 B
Objective-C

/*************************************************************************
*
* Orca
* Copyright 2023 Martin Fouilleul and the Orca project contributors
* See LICENSE.txt for licensing information
*
**************************************************************************/
#ifndef __MTL_SURFACE_H_
#define __MTL_SURFACE_H_
#include "graphics_surface.h"
#ifdef __OBJC__
#import <Metal/Metal.h>
#endif
oc_surface_data* oc_mtl_surface_create_for_window(oc_window window);
void* oc_mtl_surface_render_encoder(oc_surface surface);
void* oc_mtl_surface_compute_encoder(oc_surface surface);
void* oc_mtl_surface_layer(oc_surface surface);
void* oc_mtl_surface_drawable(oc_surface surface);
void* oc_mtl_surface_command_buffer(oc_surface surface);
#endif //__MTL_SURFACE_H_