码迷,mamicode.com
首页 >  
搜索关键字:vertex and frag    ( 617个结果
Spark学习之路 (二十八)分布式图计算系统
讨论QQ:1586558083 目录 一、引言 二、图存储模式 2.1 边分割(Edge-Cut) 2.2 点分割(Vertex-Cut) 2.3 对比 三、图计算模式 3.1 超步 3.2 Pregel模型——像顶点一样思考 3.3 GAS模型——邻居更新模型 正文 回到顶部 一、引言 在了解Gr ...
分类:其他好文   时间:2019-06-11 13:16:04    阅读次数:120
PAT_A1154#Vertex Coloring
Source: PAT A 1154 Vertex Coloring (25 分) Description: A proper vertex coloring is a labeling of the graph's vertices with colors such that no two ver ...
分类:其他好文   时间:2019-05-10 23:36:59    阅读次数:179
DirectX11--深入理解与使用缓冲区资源
原文:DirectX11--深入理解与使用缓冲区资源前言 在Direct3D 11中,缓冲区属于其中一种资源类型,它在内存上的布局是一维线性的。根据HLSL支持的类型以及C++的使用情况,缓冲区可以分为下面这些类型: 顶点缓冲区(Vertex Buffer) 索引缓冲区(Index Buffer) ... ...
分类:其他好文   时间:2019-05-05 10:20:59    阅读次数:173
顶点吸附
在游戏运行中可能会复制大量游戏几何体,这虽然没有减小开销,但确减少了游戏程序所占磁盘空间大小,因而利于“快速”下载。最终结果就是要在游戏空间中对这些对象进行整理,为了完成这个任务,Unity引擎为我们提供了一个非常实用的功能-----顶点捕捉(vertex snap) 按下键盘上的"V"键 ,把鼠标... ...
分类:其他好文   时间:2019-05-02 23:45:54    阅读次数:284
OpenGL学习(3)——Shader(补)
完成章节后练习。 练习 1. Adjust the vertex shader so that the triangle is upside down. 2. Specify a horizontal offset via a uniform and move the triangle to the ...
分类:其他好文   时间:2019-05-02 09:48:57    阅读次数:125
[Unity优化]批处理02:动态批处理
参考链接: https://docs.unity3d.com/Manual/DrawCallBatching.html 1. 要求mesh不能超过900个顶点属性,同时不能超过300个顶点 如果shader用到了Vertex Position, Normal and single UV,那么不能超过 ...
分类:编程语言   时间:2019-04-27 19:49:51    阅读次数:376
OpenGL学习(3)——Shader
之前已经接触过Vertex Shader和Fragment Shader,这次学习如何编写Shader并封装成类。 Shader源码主要有四部分: 1. 版本声明 ; 2. 使用in和out关键字定义输入输出变量,上一个Shader的输出变量必须和下一个Shader的输入变量保持一致; 3. 有时使 ...
分类:其他好文   时间:2019-04-26 20:54:30    阅读次数:144
CodeForces-1151E-Number of Components
Description The Kingdom of Kremland is a tree (a connected undirected graph without cycles) consisting of $n$ vertices. Each vertex $i$ has its own va ...
分类:其他好文   时间:2019-04-22 20:57:58    阅读次数:205
OpenGL学习(2)——绘制三角形
在 "创建窗口" 的基础上,添加代码实现三角形的绘制。 声明和定义变量 在屏幕上绘制一个三角形需要的变量有: 1. 三角形的三个顶点坐标; 2. Vertex Buffer Object 将顶点数据存储在GPU的内存中; 3. Vertex Array Object存储对顶点属性的配置和与顶点属性相 ...
分类:其他好文   时间:2019-04-19 09:14:52    阅读次数:217
B - Edge to the Root (树上dfs+思维)
Given a tree with n vertices, we want to add an edge between vertex 1 and vertex x, so that the sum of d(1, v) for all vertices v in the tree is minim ...
分类:其他好文   时间:2019-04-15 19:48:37    阅读次数:113
617条   上一页 1 ... 7 8 9 10 11 ... 62 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!