I am working on some compression support in WebGL-Webkit. So I was looking at existing S3TC support provided in WebGLRenderingContext.cpp file in Webkit code. What confuses me is the code written inside "validateCompressedTexSubDimensions(GC3Denum target, GC3Dint level, GC3Dint xoffset, GC3Dint yoffset, GC3Dsizei width, GC3Dsizei height, GC3Denum format, ArrayBufferView data)" s3tc extension spec says that you should throw an error in your application if: " plus is not equal to texture width*"; Then how is it that in the existing webkit code for the function validateCompressedTexSubDimensions() for S3TC, the code goes on something like this: "if (width - xoffset > tex->getWidth(target, level) {synthesizeGLError("blah blah") }" Is this code right? If so, then what is the meaning of "width", and "tex->getWidth()" in the webkit code. Is width the width of the sub-image or the actual width of the complete tex2D texel array? And what does the constant "TEXTURE_WIDTH" stand for? Looking forward to your useful comments :)
WebGL - Width, height parameters passed in validateCompressedTexSubDimensions() function?
148 Views Asked by dennis At
0
There are 0 best solutions below
Related Questions in OPENGL-ES
- Setting up OpenGL ES 1.1, and my android environment
- Opengl Augmented Reality in Android from solvepnp
- error 1281 for the call to glUseProgram
- Page Curl with best quality
- Qtwebengine on Embedded linux, with qtwayland and OpenGL not working, black rectangles seen on browser
- Maintaining glSurfaceView through different activities
- LibGDX - load and process texture asynchronously
- OpenGL ES 2.0 Framebuffer with render to texture iOS: nothing shown
- Generating a sphere in OpenGL without high level libraries - what's wrong with my code?
- matrix.multiply returning Nan
- Android OpenGL ES Fatal signal crash
- OpenGL / weight order independent transparency
- GLSL: How to calculate fragments output RGB value based on Photoshops curve value?
- Find a longitude given a pair of (lat,long) and an offset latitude
- How to implement dynamic page curl in android?
Related Questions in WEBKIT
- Getting X Cursor in WebKit GTK2+ widget if run by startx
- "Card" rotation and selectable text
- Opentype features cross-browser compatibility
- Using backface-visibility on * elements
- Custom SVG progress bar fill
- UI event processing by browser
- Horizontal touch scroll on mobile with text
- Webkit - fix positioned elements seem to have inherent stacking context
- Why is touchstart event after click?
- Why won't Facebook "Like" Button Scale on iOS Safari?
- Best option for converting a JSP website to Android app?
- Get Bytebuffer from JavaFX Browser
- Use Cordova with Webkit instead of the native engine
- Transfer big file to selenium grid node
- Webkit transition is working in chrome but not firefox
Related Questions in TEXTURES
- Can linear filtering be used for an FBO blit of an MSAA texture to non-MSAA texture?
- Texture mapping consuming physical memory
- Quality not proper while rendering it via threejs r71
- SDL2_image rendering not working properly
- Cocos2D 2.x: Running CCWave action makes sprite disappear
- Creating a Texture2DArray and populate it with solid values
- Projecting a texture from plane to object with Unity
- Textured cube renders blank in DirectX
- Programmatically generate texture for WebGL in JavaScript
- Unable to render a texture on a quad
- OpenGl with C++ - Textures
- Random Line Appearing on Moving Texture Node
- Load multiple OBJ-files together with multple textures
- LibGDX "GwtApplication: exception: Couldn't load image 'a.jpg'
- Android OpenGL es 2.0 Can not reload textures on object.
Related Questions in COMPRESSION
- How to use deflate/inflate SetDictionary with raw deflate/inflate?
- C# How to get file/ copy file from a bzip2 (.bz2) file without extracting the file
- How can I compress four floats into a string?
- Create ZIP File Then Send to Client
- compress json data from rest node.js use express compression
- Advanced Data Compression
- Tools to minify CDD and JS files
- How to use multiple threads for zlib compression (same input source)
- Data compression in RDBMS like Oracle, MySQL etc
- Haskell - Lempel-Ziv 78 Compression - very slow, why?
- Python: how to create tar file and compress it on the fly with external module, using different compression methods not available in tarfile module?
- Why isn't lossless compression automatic on computers?
- PHP Image Compression Before Upload
- Compression of char size integer by removing leading zeroes
- BMP Image Compression and Decompression in java
Related Questions in WEBGL-EXTENSIONS
- Loading PNG images but using them as COMPRESSED_RGBA_S3TC_DXT5_EXT in WebGL?
- WebGL FrameBuffer - Render Depth Texture
- WebGL performance problems with a >65k vertex mesh on a MacBook Pro
- WebGL: Declining support for OES_texture_float on Android
- WEBGL_draw_buffers not supported on latest Firefox / Chrome
- mat3 attribute in WebGL
- Three.js Error creating WebGL context
- GLSL-ES3(webGL2): how to test extensions from fragment shader?
- Is it possible to run #version 120 shaders with WebGL
- WebGL - Width, height parameters passed in validateCompressedTexSubDimensions() function?
- Why sRGB extension has lost a constant?
- The complete list of promoted extensions in WebGL2
- OES_texture_float extension use
- Supporting WebGL1 + WebGL2
- Unity web gl game wont display loading screen and just is blank screen
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?