webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
gl::Shader Class Referencefinal

#include <Shader.h>

Inheritance diagram for gl::Shader:
angle::NonCopyable gl::LabeledObject

Public Member Functions

 Shader (ResourceManager *manager, rx::GLImplFactory *implFactory, const gl::Limitations &rendererLimitations, GLenum type, GLuint handle)
 
virtual ~Shader ()
 
void setLabel (const std::string &label) override
 
const std::stringgetLabel () const override
 
GLenum getType () const
 
GLuint getHandle () const
 
rx::ShaderImplgetImplementation () const
 
void deleteSource ()
 
void setSource (GLsizei count, const char *const *string, const GLint *length)
 
int getInfoLogLength () const
 
void getInfoLog (GLsizei bufSize, GLsizei *length, char *infoLog) const
 
int getSourceLength () const
 
void getSource (GLsizei bufSize, GLsizei *length, char *buffer) const
 
int getTranslatedSourceLength () const
 
int getTranslatedSourceWithDebugInfoLength () const
 
const std::stringgetTranslatedSource () const
 
void getTranslatedSource (GLsizei bufSize, GLsizei *length, char *buffer) const
 
void getTranslatedSourceWithDebugInfo (GLsizei bufSize, GLsizei *length, char *buffer) const
 
void compile (Compiler *compiler)
 
bool isCompiled () const
 
void addRef ()
 
void release ()
 
unsigned int getRefCount () const
 
bool isFlaggedForDeletion () const
 
void flagForDeletion ()
 
int getShaderVersion () const
 
const std::vector< sh::Varying > & getVaryings () const
 
const std::vector< sh::Uniform > & getUniforms () const
 
const std::vector< sh::InterfaceBlock > & getInterfaceBlocks () const
 
const std::vector< sh::Attribute > & getActiveAttributes () const
 
const std::vector< sh::OutputVariable > & getActiveOutputVariables () const
 
int getSemanticIndex (const std::string &attributeName) const
 
const sh::WorkGroupSizegetWorkGroupSize () const
 
- Public Member Functions inherited from gl::LabeledObject
virtual ~LabeledObject ()
 

Constructor & Destructor Documentation

◆ Shader()

gl::Shader::Shader ( ResourceManager manager,
rx::GLImplFactory implFactory,
const gl::Limitations rendererLimitations,
GLenum  type,
GLuint  handle 
)

◆ ~Shader()

gl::Shader::~Shader ( )
virtual

Member Function Documentation

◆ addRef()

void gl::Shader::addRef ( void  )

◆ compile()

void gl::Shader::compile ( Compiler compiler)

◆ deleteSource()

void gl::Shader::deleteSource ( )

◆ flagForDeletion()

void gl::Shader::flagForDeletion ( )

◆ getActiveAttributes()

const std::vector< sh::Attribute > & gl::Shader::getActiveAttributes ( ) const

◆ getActiveOutputVariables()

const std::vector< sh::OutputVariable > & gl::Shader::getActiveOutputVariables ( ) const

◆ getHandle()

GLuint gl::Shader::getHandle ( ) const

◆ getImplementation()

rx::ShaderImpl* gl::Shader::getImplementation ( ) const
inline

◆ getInfoLog()

void gl::Shader::getInfoLog ( GLsizei  bufSize,
GLsizei length,
char *  infoLog 
) const

◆ getInfoLogLength()

int gl::Shader::getInfoLogLength ( ) const

◆ getInterfaceBlocks()

const std::vector< sh::InterfaceBlock > & gl::Shader::getInterfaceBlocks ( ) const

◆ getLabel()

const std::string & gl::Shader::getLabel ( ) const
overridevirtual

Implements gl::LabeledObject.

◆ getRefCount()

unsigned int gl::Shader::getRefCount ( ) const

◆ getSemanticIndex()

int gl::Shader::getSemanticIndex ( const std::string attributeName) const

◆ getShaderVersion()

int gl::Shader::getShaderVersion ( ) const

◆ getSource()

void gl::Shader::getSource ( GLsizei  bufSize,
GLsizei length,
char *  buffer 
) const

◆ getSourceLength()

int gl::Shader::getSourceLength ( ) const

◆ getTranslatedSource() [1/2]

const std::string& gl::Shader::getTranslatedSource ( ) const
inline

◆ getTranslatedSource() [2/2]

void gl::Shader::getTranslatedSource ( GLsizei  bufSize,
GLsizei length,
char *  buffer 
) const

◆ getTranslatedSourceLength()

int gl::Shader::getTranslatedSourceLength ( ) const

◆ getTranslatedSourceWithDebugInfo()

void gl::Shader::getTranslatedSourceWithDebugInfo ( GLsizei  bufSize,
GLsizei length,
char *  buffer 
) const

◆ getTranslatedSourceWithDebugInfoLength()

int gl::Shader::getTranslatedSourceWithDebugInfoLength ( ) const

◆ getType()

GLenum gl::Shader::getType ( ) const
inline

◆ getUniforms()

const std::vector< sh::Uniform > & gl::Shader::getUniforms ( ) const

◆ getVaryings()

const std::vector< sh::Varying > & gl::Shader::getVaryings ( ) const

◆ getWorkGroupSize()

const sh::WorkGroupSize& gl::Shader::getWorkGroupSize ( ) const
inline

◆ isCompiled()

bool gl::Shader::isCompiled ( ) const
inline

◆ isFlaggedForDeletion()

bool gl::Shader::isFlaggedForDeletion ( ) const

◆ release()

void gl::Shader::release ( )

◆ setLabel()

void gl::Shader::setLabel ( const std::string label)
overridevirtual

Implements gl::LabeledObject.

◆ setSource()

void gl::Shader::setSource ( GLsizei  count,
const char *const *  string,
const GLint length 
)

The documentation for this class was generated from the following files: