get the metal backend to compile (does not load)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "core/sync/fence/gryphn_fence.h"
|
||||
#include "sync/fence/gryphn_fence.h"
|
||||
#import <Metal/Metal.h>
|
||||
#import <Metal/MTLEvent.h>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "metal_fence.h"
|
||||
#include "core/devices/metal_output_devices.h"
|
||||
#include "devices/metal_output_devices.h"
|
||||
|
||||
gnReturnCode gnCreateFenceFn(struct gnFence_t* fence, struct gnOutputDevice_t* device) {
|
||||
// fence->fence = malloc(sizeof(gnPlatformFence));
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "core/sync/semaphore/gryphn_semaphore.h"
|
||||
#include "sync/semaphore/gryphn_semaphore.h"
|
||||
#import <Metal/MTLEvent.h>
|
||||
|
||||
typedef struct gnPlatformSemaphore_t {
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#include "metal_semaphore.h"
|
||||
#include "core/devices/metal_output_devices.h"
|
||||
#include "devices/metal_output_devices.h"
|
||||
|
||||
gnReturnCode gnCreateSemaphoreFn(struct gnSemaphore_t* semaphore, struct gnOutputDevice_t* device) {
|
||||
gnReturnCode gnCreateSemaphoreFn(gnSemaphore semaphore, gnOutputDevice device) {
|
||||
semaphore->semaphore = malloc(sizeof(gnPlatformSemaphore));
|
||||
semaphore->semaphore->event = [device->outputDevice->device newEvent];
|
||||
|
||||
return GN_SUCCESS;
|
||||
}
|
||||
void gnDestroySemaphoreFn(struct gnSemaphore_t* semaphore) {
|
||||
void gnDestroySemaphoreFn(gnSemaphore semaphore) {
|
||||
[semaphore->semaphore->event release];
|
||||
free(semaphore->semaphore);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user