зеркало из https://github.com/mozilla/moz-skia.git
Reorder the vertex attributes to be friendlier to android.
Review URL: https://codereview.appspot.com/6742068 git-svn-id: http://skia.googlecode.com/svn/trunk@6044 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
0b1e481709
Коммит
28f6ab4b6e
|
@ -58,15 +58,13 @@ public:
|
|||
const Desc& getDesc() { return fDesc; }
|
||||
|
||||
/**
|
||||
* Attribute indices. These should not overlap. Matrices consume 3 slots.
|
||||
* Attribute indices. These should not overlap.
|
||||
*/
|
||||
static int PositionAttributeIdx() { return 0; }
|
||||
static int TexCoordAttributeIdx(int tcIdx) { return 1 + tcIdx; }
|
||||
static int ColorAttributeIdx() { return 1 + GrDrawState::kMaxTexCoords; }
|
||||
static int CoverageAttributeIdx() {
|
||||
return 2 + GrDrawState::kMaxTexCoords;
|
||||
}
|
||||
static int EdgeAttributeIdx() { return 3 + GrDrawState::kMaxTexCoords; }
|
||||
static int ColorAttributeIdx() { return 1; }
|
||||
static int CoverageAttributeIdx() { return 2; }
|
||||
static int EdgeAttributeIdx() { return 3; }
|
||||
static int TexCoordAttributeIdx(int tcIdx) { return 4 + tcIdx; }
|
||||
|
||||
/**
|
||||
* This function uploads uniforms and calls each GrCustomStage's setData. It is called before a
|
||||
|
|
Загрузка…
Ссылка в новой задаче