经验证,原来ddx、ddy这两个操作,在forward rendering与deferred rendering中存在着很微妙的语义区别。在forward rendering中,GPU shader会自动地判断其2x2区域是否仅有部分落在当前绘制的三角面所覆盖的interpolate范围内。而在dr...
分类:
其他好文 时间:
2014-12-11 06:45:18
阅读次数:
342
本文是对《IPython Interactive Computing and Visualization Cookbook》一书中第七章【Introduction to statistical data analysis in Python – frequentist and Bayesian me...
分类:
其他好文 时间:
2014-12-09 21:08:18
阅读次数:
307
#include #include #include #include #include #include using namespace std;#define INF 0xffffffff#define maxn 1000005struct Edge{ int w, e;};int Use...
分类:
其他好文 时间:
2014-12-08 21:04:37
阅读次数:
118
#include
#include
#include
using namespace std;
struct edge {
int begin;
int end;
int cost;
};
bool cmp(edge a, edge b)
{
if (a.cost < b.cost)
return true;
return false;
}
int findSet(in...
分类:
编程语言 时间:
2014-12-08 09:21:00
阅读次数:
202
1.怎么调试程序在linux下,我们通常用gcc来编译链接程序,用gdb来调试程序。在用gcc生成程序的时候,用-g选项来使程序可以调试:test@test-ThinkPad-Edge-E420s:~/gdb$ gcc -g -Wall gdbtest.c -o gdbtest然后在用如下命令调试程...
分类:
数据库 时间:
2014-12-08 00:34:19
阅读次数:
365
排序的题从来没有搞懂过
#include
#include
#include
#include
using namespace std;
#define N 3001
struct node {
int s, e;
}edge[N];
int a[N];
int main() {
int n;
while(cin >> n) {
...
分类:
其他好文 时间:
2014-12-07 19:10:12
阅读次数:
155
Canny方法被许多人认为是拿来做边缘检测的最佳的方法。在维基百科上有关于Canny方法的比较详细的介绍:http://en.wikipedia.org/wiki/Canny_edge_detector所以下面只是简单地提一下,因为暂时没有充裕的时间去阅读OpenCV实现Canny的源代码。Cann...
分类:
其他好文 时间:
2014-12-07 16:23:29
阅读次数:
215
简单的tarjan#include #include #include #include #define N 10010#define M 20010#define C 2001000using namespace std;struct edge{ int v,c; int next;}City[M...
分类:
其他好文 时间:
2014-12-06 16:45:23
阅读次数:
187
近日,VMware Workstation版本又一次升级,带来了VMware Workstation 11.0.0的新版本,下面简单的介绍下新版本。
关于新版本的介绍:http://www.vmware.com/products/workstation/
特性1:Leading Edge PC Virtualization
特性2:State of the Art Desktop...
分类:
系统相关 时间:
2014-12-05 21:23:29
阅读次数:
259
android:layout_above 将该控件的底部置于给定ID的控件之上 --Rule that aligns a child's bottom edge with another child's top edge.android:layout_below 将该控件的顶部置于给定ID的...
分类:
移动开发 时间:
2014-12-05 14:17:30
阅读次数:
145