Пример #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
 public static unsafe void GetInteger(ALDevice device, GetInteger64 param, Span <long> values)
 {
     // Beacuse we don't know how this span is allocated we need to fix it
     fixed(long *ptr = &values[0])
     {
         GetInteger(device, param, values.Length, ptr);
     }
 }
Пример #3
0
 public static void GetInteger(ALDevice device, GetInteger64 param, int size, long[] values) => _GetIntegerArray(device, param, size, values);
Пример #4
0
 private static void GetInteger(ALDevice device, GetInteger64 param, int size, out long values) => _GetIntegerRef(device, param, size, out values);
Пример #5
0
#pragma warning disable SA1516 // Elements should be separated by blank line
        public static unsafe void GetInteger(ALDevice device, GetInteger64 param, int size, long *values) => _GetIntegerPtr(device, param, size, values);
Пример #6
0
#pragma warning restore SA1516 // Elements should be separated by blank line

        public static void GetInteger(ALDevice device, GetInteger64 param, long[] values)
        {
            GetInteger(device, param, values.Length, values);
        }
Пример #7
0
 public static void GetInteger(ALDevice device, GetInteger64 param, Span <long> values)
 {
     GetInteger(device, param, values.Length, ref values[0]);
 }
Пример #8
0
 public static void GetInteger(ALDevice device, GetInteger64 param, int size, ref long values) => _GetIntegerRef(device, param, size, ref values);