Home
last modified time | relevance | path

Searched refs:stageIdx (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/gpu/
DGrDrawState.h144 static int StageTexCoordVertexLayoutBit(int stageIdx, int texCoordIdx) { in StageTexCoordVertexLayoutBit() argument
145 GrAssert(stageIdx < kNumStages); in StageTexCoordVertexLayoutBit()
147 return 1 << (stageIdx + (texCoordIdx * kNumStages)); in StageTexCoordVertexLayoutBit()
150 static bool StageUsesTexCoords(GrVertexLayout layout, int stageIdx);
203 static int VertexTexCoordsForStage(int stageIdx, GrVertexLayout vertexLayout);
211 static int VertexStageCoordOffset(int stageIdx, GrVertexLayout vertexLayout);
479 const GrEffectRef* setEffect(int stageIdx, const GrEffectRef* effect) { in setEffect() argument
480 fStages[stageIdx].setEffect(effect); in setEffect()
487 void createTextureEffect(int stageIdx, GrTexture* texture, const SkMatrix& matrix) { in createTextureEffect() argument
488 GrAssert(!this->getStage(stageIdx).getEffect()); in createTextureEffect()
[all …]
DGrDrawState.cpp188 int GrDrawState::VertexStageCoordOffset(int stageIdx, GrVertexLayout vertexLayout) { in VertexStageCoordOffset() argument
191 if (!StageUsesTexCoords(vertexLayout, stageIdx)) { in VertexStageCoordOffset()
194 int tcIdx = VertexTexCoordsForStage(stageIdx, vertexLayout); in VertexStageCoordOffset()
355 int GrDrawState::VertexTexCoordsForStage(int stageIdx, in VertexTexCoordsForStage() argument
357 GrAssert(stageIdx < GrDrawState::kNumStages); in VertexTexCoordsForStage()
359 int bit = vertexLayout & gStageTexCoordMasks[stageIdx]; in VertexTexCoordsForStage()
479 bool GrDrawState::StageUsesTexCoords(GrVertexLayout layout, int stageIdx) { in StageUsesTexCoords() argument
480 return SkToBool(layout & gStageTexCoordMasks[stageIdx]); in StageUsesTexCoords()
/external/skia/src/gpu/gl/
DGrGLShaderBuilder.h175 void setCurrentStage(int stageIdx) { fCurrentStageIdx = stageIdx; } in setCurrentStage() argument