webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Public Attributes | List of all members
gl::InternalFormat Struct Reference

#include <formatutils.h>

Public Types

typedef bool(* SupportCheckFunction) (GLuint, const Extensions &)
 

Public Member Functions

 InternalFormat ()
 
GLuint computePixelBytes (GLenum formatType) const
 
ErrorOrResult< GLuintcomputeRowPitch (GLenum formatType, GLsizei width, GLint alignment, GLint rowLength) const
 
ErrorOrResult< GLuintcomputeDepthPitch (GLsizei height, GLint imageHeight, GLuint rowPitch) const
 
ErrorOrResult< GLuintcomputeDepthPitch (GLenum formatType, GLsizei width, GLsizei height, GLint alignment, GLint rowLength, GLint imageHeight) const
 
ErrorOrResult< GLuintcomputeCompressedImageSize (GLenum formatType, const Extents &size) const
 
ErrorOrResult< GLuintcomputeSkipBytes (GLuint rowPitch, GLuint depthPitch, const PixelStoreStateBase &state, bool is3D) const
 
ErrorOrResult< GLuintcomputePackUnpackEndByte (GLenum formatType, const Extents &size, const PixelStoreStateBase &state, bool is3D) const
 
bool isLUMA () const
 
GLenum getReadPixelsFormat () const
 
GLenum getReadPixelsType () const
 
bool operator== (const InternalFormat &other) const
 
bool operator!= (const InternalFormat &other) const
 

Public Attributes

GLenum internalFormat
 
GLuint redBits
 
GLuint greenBits
 
GLuint blueBits
 
GLuint luminanceBits
 
GLuint alphaBits
 
GLuint sharedBits
 
GLuint depthBits
 
GLuint stencilBits
 
GLuint pixelBytes
 
GLuint componentCount
 
bool compressed
 
GLuint compressedBlockWidth
 
GLuint compressedBlockHeight
 
GLenum format
 
GLenum type
 
GLenum componentType
 
GLenum colorEncoding
 
SupportCheckFunction textureSupport
 
SupportCheckFunction renderSupport
 
SupportCheckFunction filterSupport
 

Member Typedef Documentation

◆ SupportCheckFunction

typedef bool(* gl::InternalFormat::SupportCheckFunction) (GLuint, const Extensions &)

Constructor & Destructor Documentation

◆ InternalFormat()

gl::InternalFormat::InternalFormat ( )

Member Function Documentation

◆ computeCompressedImageSize()

ErrorOrResult< GLuint > gl::InternalFormat::computeCompressedImageSize ( GLenum  formatType,
const Extents size 
) const

◆ computeDepthPitch() [1/2]

ErrorOrResult< GLuint > gl::InternalFormat::computeDepthPitch ( GLsizei  height,
GLint  imageHeight,
GLuint  rowPitch 
) const

◆ computeDepthPitch() [2/2]

ErrorOrResult< GLuint > gl::InternalFormat::computeDepthPitch ( GLenum  formatType,
GLsizei  width,
GLsizei  height,
GLint  alignment,
GLint  rowLength,
GLint  imageHeight 
) const

◆ computePackUnpackEndByte()

ErrorOrResult< GLuint > gl::InternalFormat::computePackUnpackEndByte ( GLenum  formatType,
const Extents size,
const PixelStoreStateBase state,
bool  is3D 
) const

◆ computePixelBytes()

GLuint gl::InternalFormat::computePixelBytes ( GLenum  formatType) const

◆ computeRowPitch()

ErrorOrResult< GLuint > gl::InternalFormat::computeRowPitch ( GLenum  formatType,
GLsizei  width,
GLint  alignment,
GLint  rowLength 
) const

◆ computeSkipBytes()

ErrorOrResult< GLuint > gl::InternalFormat::computeSkipBytes ( GLuint  rowPitch,
GLuint  depthPitch,
const PixelStoreStateBase state,
bool  is3D 
) const

◆ getReadPixelsFormat()

GLenum gl::InternalFormat::getReadPixelsFormat ( ) const

◆ getReadPixelsType()

GLenum gl::InternalFormat::getReadPixelsType ( ) const

◆ isLUMA()

bool gl::InternalFormat::isLUMA ( ) const

◆ operator!=()

bool gl::InternalFormat::operator!= ( const InternalFormat other) const

◆ operator==()

bool gl::InternalFormat::operator== ( const InternalFormat other) const

Member Data Documentation

◆ alphaBits

GLuint gl::InternalFormat::alphaBits

◆ blueBits

GLuint gl::InternalFormat::blueBits

◆ colorEncoding

GLenum gl::InternalFormat::colorEncoding

◆ componentCount

GLuint gl::InternalFormat::componentCount

◆ componentType

GLenum gl::InternalFormat::componentType

◆ compressed

bool gl::InternalFormat::compressed

◆ compressedBlockHeight

GLuint gl::InternalFormat::compressedBlockHeight

◆ compressedBlockWidth

GLuint gl::InternalFormat::compressedBlockWidth

◆ depthBits

GLuint gl::InternalFormat::depthBits

◆ filterSupport

SupportCheckFunction gl::InternalFormat::filterSupport

◆ format

GLenum gl::InternalFormat::format

◆ greenBits

GLuint gl::InternalFormat::greenBits

◆ internalFormat

GLenum gl::InternalFormat::internalFormat

◆ luminanceBits

GLuint gl::InternalFormat::luminanceBits

◆ pixelBytes

GLuint gl::InternalFormat::pixelBytes

◆ redBits

GLuint gl::InternalFormat::redBits

◆ renderSupport

SupportCheckFunction gl::InternalFormat::renderSupport

◆ sharedBits

GLuint gl::InternalFormat::sharedBits

◆ stencilBits

GLuint gl::InternalFormat::stencilBits

◆ textureSupport

SupportCheckFunction gl::InternalFormat::textureSupport

◆ type

GLenum gl::InternalFormat::type

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