17 lines
489 B
Objective-C
17 lines
489 B
Objective-C
#pragma once
|
|
#include "textures/gryphn_texture.h"
|
|
#import <Metal/MTLTexture.h>
|
|
#import <Metal/MTLSampler.h>
|
|
|
|
typedef struct gnPlatformTexture_t {
|
|
id<MTLTexture> texture;
|
|
id<MTLSamplerState> sampler;
|
|
} gnPlatformTexture;
|
|
|
|
gnReturnCode createMetalTexture(gnTexture texture, gnDevice device, const gnTextureInfo info);
|
|
void metalTextureData(gnTextureHandle texture, void* pixelData);
|
|
void metalDestroyTexture(gnTexture texture);
|
|
|
|
|
|
NSUInteger mtlSampleCount(gnSampleCountFlags flags);
|