예제 #1
0
        private static void Load_VERSION_3_2()
        {
            _DrawElementsBaseVertex          = GetAddress <DrawElementsBaseVertex>("glDrawElementsBaseVertex");
            _DrawRangeElementsBaseVertex     = GetAddress <DrawRangeElementsBaseVertex>("glDrawRangeElementsBaseVertex");
            _DrawElementsInstancedBaseVertex = GetAddress <DrawElementsInstancedBaseVertex>("glDrawElementsInstancedBaseVertex");
            _MultiDrawElementsBaseVertex     = GetAddress <MultiDrawElementsBaseVertex>("glMultiDrawElementsBaseVertex");
            ProvokingVertex        = GetAddress <ProvokingVertex>("glProvokingVertex");
            FenceSync              = GetAddress <FenceSync>("glFenceSync");
            IsSync                 = GetAddress <IsSync>("glIsSync");
            DeleteSync             = GetAddress <DeleteSync>("glDeleteSync");
            ClientWaitSync         = GetAddress <ClientWaitSync>("glClientWaitSync");
            WaitSync               = GetAddress <WaitSync>("glWaitSync");
            GetInteger64           = GetAddress <GetInteger64>("glGetInteger64v");
            GetInteger64v          = GetAddress <GetInteger64v>("glGetInteger64v");
            GetSynci               = GetAddress <GetSynci>("glGetSynciv");
            GetSynciv              = GetAddress <GetSynciv>("glGetSynciv");
            GetInteger64i_         = GetAddress <GetInteger64i_>("glGetInteger64i_v");
            GetInteger64i_v        = GetAddress <GetInteger64i_v>("glGetInteger64i_v");
            GetBufferParameteri64  = GetAddress <GetBufferParameteri64>("glGetBufferParameteri64v");
            GetBufferParameteri64v = GetAddress <GetBufferParameteri64v>("glGetBufferParameteri64v");
            FramebufferTexture     = GetAddress <FramebufferTexture>("glFramebufferTexture");
            TexImage2DMultisample  = GetAddress <TexImage2DMultisample>("glTexImage2DMultisample");
            TexImage3DMultisample  = GetAddress <TexImage3DMultisample>("glTexImage3DMultisample");
            GetMultisamplefv       = GetAddress <GetMultisamplefv>("glGetMultisamplefv");
            SampleMaski            = GetAddress <SampleMaski>("glSampleMaski");

            VERSION_3_2 = VERSION_3_1 && _DrawElementsBaseVertex != null && _DrawRangeElementsBaseVertex != null &&
                          _DrawElementsInstancedBaseVertex != null && _MultiDrawElementsBaseVertex != null &&
                          ProvokingVertex != null && FenceSync != null && IsSync != null && DeleteSync != null && ClientWaitSync != null &&
                          WaitSync != null && GetInteger64v != null && GetSynciv != null && GetInteger64i_v != null && GetBufferParameteri64v != null &&
                          FramebufferTexture != null && TexImage2DMultisample != null && TexImage3DMultisample != null &&
                          GetMultisamplefv != null && SampleMaski != null;
        }
예제 #2
0
            protected virtual void Dispose(bool Disposing)
            {
                if (Disposing)
                {
                    WaitSync.Dispose();

                    WaitActivity.Dispose();

                    WaitSched.Dispose();
                }
            }