コード例 #1
0
 public static void GetQueryObjectuivEXT(uint id, QueryObjectParameterName pname, out uint @params)
 {
     unsafe
     {
         fixed(uint *p_params = & @params)
         {
             Debug.Assert(Delegates.pglGetQueryObjectuivEXT != null, "pglGetQueryObjectuivEXT not implemented");
             Delegates.pglGetQueryObjectuivEXT(id, (int)pname, p_params);
             LogCommand("glGetQueryObjectuivEXT", null, id, pname, @params);
         }
     }
     DebugCheckErrors(null);
 }
コード例 #2
0
 public static void GetQueryObjectuivEXT(UInt32 id, QueryObjectParameterName pname, [Out] UInt32[] @params)
 {
     unsafe
     {
         fixed(UInt32 *p_params = @params)
         {
             Debug.Assert(Delegates.pglGetQueryObjectuivEXT != null, "pglGetQueryObjectuivEXT not implemented");
             Delegates.pglGetQueryObjectuivEXT(id, (Int32)pname, p_params);
             LogCommand("glGetQueryObjectuivEXT", null, id, pname, @params);
         }
     }
     DebugCheckErrors(null);
 }
コード例 #3
0
 public static unsafe void GetQueryObject(this ArbOcclusionQuery thisApi, [Flow(FlowDirection.In)] uint id, [Flow(FlowDirection.In)] QueryObjectParameterName pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] Span <uint> @params)
 {
     // SpanOverloader
     thisApi.GetQueryObject(id, pname, out @params.GetPinnableReference());
 }
コード例 #4
0
 public abstract void GetQueryObject([Flow(FlowDirection.In)] uint id, [Flow(FlowDirection.In)] QueryObjectParameterName pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] out uint @params);
コード例 #5
0
 public unsafe partial void GetQueryObject([Flow(FlowDirection.In)] uint id, [Flow(FlowDirection.In)] QueryObjectParameterName pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] ulong * @params);
コード例 #6
0
 /// <summary>
 /// Update the buffer given in GLOperationQuery.
 /// See <href>https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glGetQueryObject.xhtml</href>
 /// </summary>
 /// <param name="offset">Offset into buffer to write the data to</param>
 /// <param name="pname">Query parameter, nominally QueryResult. Also GL_QUERY_RESULT_NO_WAIT or GL_QUERY_RESULT_AVAILABLE. (use OpenTK Names)</param>
 public void UpdateBuffer(int offset, QueryObjectParameterName pname = QueryObjectParameterName.QueryResult)      // store in buffer at offset the result
 {
     GL.GetQueryBufferObject(Query.Id, Query.QueryBuffer.Id, pname, (IntPtr)offset);
     GLStatics.Check();
 }