Lines Matching refs:GrGLShaderBuilder
8 #include "gl/GrGLShaderBuilder.h"
92 GrGLShaderBuilder::GrGLShaderBuilder(GrGpuGL* gpu,
150 fColorUniform = this->addUniform(GrGLShaderBuilder::kFragment_Visibility,
161 fCoverageUniform = this->addUniform(GrGLShaderBuilder::kFragment_Visibility,
178 bool GrGLShaderBuilder::enableFeature(GLSLFeature feature) {
195 bool GrGLShaderBuilder::enablePrivateFeature(GLSLPrivateFeature feature) {
226 void GrGLShaderBuilder::addFSFeature(uint32_t featureBit, const char* extensionName) {
233 void GrGLShaderBuilder::nameVariable(SkString* out, char prefix, const char* name) {
248 const char* GrGLShaderBuilder::dstColor() {
272 void GrGLShaderBuilder::appendTextureLookup(SkString* out,
273 const GrGLShaderBuilder::TextureSampler& sampler,
285 void GrGLShaderBuilder::fsAppendTextureLookup(const GrGLShaderBuilder::TextureSampler& sampler,
291 void GrGLShaderBuilder::fsAppendTextureLookupAndModulate(
293 const GrGLShaderBuilder::TextureSampler& sampler,
301 GrGLShaderBuilder::DstReadKey GrGLShaderBuilder::KeyForDstRead(const GrTexture* dstCopy,
319 GrGLShaderBuilder::FragPosKey GrGLShaderBuilder::KeyForFragmentPosition(const GrRenderTarget* dst,
329 const GrGLenum* GrGLShaderBuilder::GetTexParamSwizzle(GrPixelConfig config, const GrGLCaps& caps) {
345 GrGLUniformManager::UniformHandle GrGLShaderBuilder::addUniformArray(uint32_t visibility,
383 SkString GrGLShaderBuilder::ensureFSCoords2D(const TransformedCoordsArray& coords, int index) {
398 const char* GrGLShaderBuilder::fragmentPosition() {
450 void GrGLShaderBuilder::fsEmitFunction(GrSLType returnType,
497 void GrGLShaderBuilder::appendDecls(const VarArray& vars, SkString* out) const {
504 void GrGLShaderBuilder::appendUniformDecls(ShaderVisibility visibility,
514 void GrGLShaderBuilder::createAndEmitEffects(GrGLProgramEffectsBuilder* programEffectsBuilder,
561 const char* GrGLShaderBuilder::getColorOutputName() const {
565 const char* GrGLShaderBuilder::enableSecondaryOutput() {
576 bool GrGLShaderBuilder::finish(GrGLuint* outProgramId) {
577 SK_TRACE_EVENT0("GrGLShaderBuilder::finish");
688 bool GrGLShaderBuilder::compileAndAttachShaders(GrGLuint programId) const {
710 void GrGLShaderBuilder::bindProgramLocations(GrGLuint programId) const {
719 const GrGLContextInfo& GrGLShaderBuilder::ctxInfo() const {
749 fViewMatrixUniform = this->addUniform(GrGLShaderBuilder::kVertex_Visibility,