Lines Matching refs:Shader
8 // Shader.cpp: Implements the gl::Shader class and its derived classes
9 // VertexShader and FragmentShader. Implements GL shader objects and related
12 #include "libGLESv2/Shader.h"
22 void *Shader::mFragmentCompiler = NULL;
23 void *Shader::mVertexCompiler = NULL;
25 Shader::Shader(ResourceManager *manager, const rx::Renderer *renderer, GLuint handle)
36 Shader::~Shader()
40 GLuint Shader::getHandle() const
45 void Shader::setSource(GLsizei count, const char *const *string, const GLint *length)
57 int Shader::getInfoLogLength() const
62 void Shader::getInfoLog(GLsizei bufSize, GLsizei *length, char *infoLog) const
80 int Shader::getSourceLength() const
85 int Shader::getTranslatedSourceLength() const
90 void Shader::getSourceImpl(const std::string &source, GLsizei bufSize, GLsizei *length, char *buffer) const
108 void Shader::getSource(GLsizei bufSize, GLsizei *length, char *buffer) const
113 void Shader::getTranslatedSource(GLsizei bufSize, GLsizei *length, char *buffer) const
118 const std::vector<Uniform> &Shader::getUniforms() const
123 const std::vector<InterfaceBlock> &Shader::getInterfaceBlocks() const
128 std::vector<PackedVarying> &Shader::getVaryings()
133 bool Shader::isCompiled() const
138 const std::string &Shader::getHLSL() const
143 void Shader::addRef()
148 void Shader::release()
158 unsigned int Shader::getRefCount() const
163 bool Shader::isFlaggedForDeletion() const
168 void Shader::flagForDeletion()
173 // Perform a one-time initialization of the shader compiler (or after being destructed by releaseCompiler)
174 void Shader::initializeCompiler()
199 resources.FragmentPrecisionHigh = 1; // Shader Model 2+ always supports FP24 (s16e7) which corresponds to highp
200 resources.EXT_frag_depth = 1; // Shader Model 2+ always supports explicit depth output
213 void Shader::releaseCompiler()
224 void Shader::parseVaryings(void *compiler)
250 void Shader::resetVaryingsRegisterAssignment()
259 void Shader::uncompile()
285 void Shader::compileToHLSL(void *compiler)
383 rx::D3DWorkaroundType Shader::getD3DWorkarounds() const
447 bool Shader::compareVarying(const PackedVarying &x, const PackedVarying &y)
475 int Shader::getShaderVersion() const
481 : Shader(manager, renderer, handle)
496 Shader::uncompile();
544 : Shader(manager, renderer, handle)
576 Shader::uncompile();
586 ShShaderOutput Shader::getCompilerOutputType(GLenum shader)
590 switch (shader)