From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/GfxDevice/opengl/ChannelsGL.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Runtime/GfxDevice/opengl/ChannelsGL.h (limited to 'Runtime/GfxDevice/opengl/ChannelsGL.h') diff --git a/Runtime/GfxDevice/opengl/ChannelsGL.h b/Runtime/GfxDevice/opengl/ChannelsGL.h new file mode 100644 index 0000000..43e7cad --- /dev/null +++ b/Runtime/GfxDevice/opengl/ChannelsGL.h @@ -0,0 +1,17 @@ +#ifndef __CHANNELS_GL_H__ +#define __CHANNELS_GL_H__ + +#include "Runtime/GfxDevice/GfxDeviceTypes.h" +#include "Runtime/GfxDevice/ChannelAssigns.h" +#include "Runtime/Filters/Mesh/VertexData.h" + +void ClearActiveChannelsGL(); +void SetChannelDataGL( const ChannelInfo& source, const StreamInfoArray streams, VertexComponent target, const UInt8* buffer = NULL ); +void SetChannelDataGL( ShaderChannel source, VertexComponent target, const void *pointer, int stride ); +#if UNITY_EDITOR +void SetChannelDataGL( ShaderChannel source, const ChannelAssigns& channels, const void *pointer, int stride ); +#endif +void ActivateChannelsGL(); +void InvalidateChannelStateGL(); + +#endif -- cgit v1.1-26-g67d0