brought back functionality from previous builds but now cross-platform
This commit is contained in:
@@ -1,12 +1,31 @@
|
||||
#ifndef ML_VIDEO_H
|
||||
#define ML_VIDEO_H
|
||||
|
||||
#include "tier0/platform.h"
|
||||
#include "Metal/Metal.hpp"
|
||||
#include "QuartzCore/QuartzCore.hpp"
|
||||
|
||||
extern CA::MetalLayer *g_mlLayer;
|
||||
extern MTL::Device *g_mlDevice;
|
||||
extern MTL::CommandQueue *g_mlCommandQueue;
|
||||
extern MTL::CommandBuffer *g_mlCommandBuffer;
|
||||
extern NS::AutoreleasePool *g_mlPool;
|
||||
|
||||
extern char g_bConfigNotify;
|
||||
extern uint32_t g_nWindowWidth;
|
||||
extern uint32_t g_nWindowHeight;
|
||||
|
||||
extern CUtlVector<MTL::Texture*> g_destroyImageBuffer;
|
||||
extern CUtlVector<MTL::Buffer*> g_destroyBuffersBuffer;
|
||||
extern MTL::Texture *g_mlDrawableTexture;
|
||||
|
||||
interface IMetal
|
||||
{
|
||||
public:
|
||||
static void Init();
|
||||
static void CreatePipelines();
|
||||
static void Frame();
|
||||
static void Deinit();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user