Exemplo n.º 1
0
 private QueryPoolDescription GetQueryPoolDefinition(QueryPool queryPool)
 {
     return(new QueryPoolDescription(queryPool.QueryType, queryPool.QueryCount));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Submits a GPU timestamp query.
 /// </summary>
 /// <param name="queryPool">The <see cref="QueryPool"/> owning the query.</param>
 /// <param name="index">The query index.</param>
 public void WriteTimestamp(QueryPool queryPool, int index)
 {
     nativeDeviceContext.End(queryPool.NativeQueries[index]);
 }
Exemplo n.º 3
0
 protected virtual QueryPool CreateQueryPool(QueryPoolDescription description, PixelFormat viewFormat)
 {
     return(QueryPool.New(GraphicsDevice, description.QueryType, description.QueryCount));
 }