private QueryPoolDescription GetQueryPoolDefinition(QueryPool queryPool) { return(new QueryPoolDescription(queryPool.QueryType, queryPool.QueryCount)); }
/// <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]); }
protected virtual QueryPool CreateQueryPool(QueryPoolDescription description, PixelFormat viewFormat) { return(QueryPool.New(GraphicsDevice, description.QueryType, description.QueryCount)); }