コード例 #1
0
 private QueryPoolDescription GetQueryPoolDefinition(QueryPool queryPool)
 {
     return(new QueryPoolDescription(queryPool.QueryType, queryPool.QueryCount));
 }
コード例 #2
0
ファイル: CommandList.Direct3D.cs プロジェクト: vvvv/stride
 /// <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]);
 }
コード例 #3
0
 protected virtual QueryPool CreateQueryPool(QueryPoolDescription description, PixelFormat viewFormat)
 {
     return(QueryPool.New(GraphicsDevice, description.QueryType, description.QueryCount));
 }