summaryrefslogtreecommitdiff
path: root/Runtime/Interfaces/IGfxDevice.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Interfaces/IGfxDevice.h
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/Interfaces/IGfxDevice.h')
-rw-r--r--Runtime/Interfaces/IGfxDevice.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Runtime/Interfaces/IGfxDevice.h b/Runtime/Interfaces/IGfxDevice.h
new file mode 100644
index 0000000..749c723
--- /dev/null
+++ b/Runtime/Interfaces/IGfxDevice.h
@@ -0,0 +1,28 @@
+#ifndef IGFXDEVICE_H
+#define IGFXDEVICE_H
+
+class GfxDevice;
+class GraphicsCaps;
+class GpuProgramParameters;
+
+class IGfxDevice
+{
+public:
+ virtual bool IsGfxDevice() = 0;
+ virtual bool InitializeGfxDevice() = 0;
+ virtual bool IsRealGfxDeviceThreadOwner() = 0;
+ virtual GfxDevice &GetGfxDevice() = 0;
+ virtual GfxDevice &GetUncheckedGfxDevice() = 0;
+ virtual GfxDevice &GetRealGfxDevice() = 0;
+ virtual void DestroyGfxDevice() = 0;
+ virtual void ParseGfxDeviceArgs() = 0;
+ virtual GpuProgramParameters* CreateGpuProgramParameters() = 0;
+ virtual void DestroyGpuProgramParameters(GpuProgramParameters*) = 0;
+ virtual GraphicsCaps &gGraphicsCaps = 0;
+
+};
+
+EXPORT_COREMODULE IGfxDevice* GetIGfxDevice ();
+EXPORT_COREMODULE void SetIGfxDevice (IGfxDevice* device);
+
+#endif \ No newline at end of file