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?
152 views Asked by dennis At
0
There are 0 answers
Related Questions in OPENGL-ES
- How can I use ARCore and OpenGL without Sceneform for making ar measurement app android?
- Unable to find GL_INT_2_10_10_10_REV define on Android GLES
- How to rotate model and view matrix with same angle?
- CameraX custom OpenGL Video Pipeline (`UseCase`/`VideoOutput`)
- How do I avoid leaking Graphics memory in OpenGL ES 2.0 in a background thread on Android?
- How to Create GPU SkImage in a Background Thread and Draw it on a Main SkSurface with OpenGL and Skia?
- glTexSubImage2D throws GL_INVALID_OPERATION in OpenGL ES 3.2 on Android NDK with FreeType
- What are the rules for the precision of casting operations in GLSL
- Why would a OpenGL ES 2.0 leak graphics memory on Android, but not iOS with the same code
- Create a VideoFrame from Canvas
- GLES30 Ray Picking gluUnProject
- OpenGL lighting works incorrectly on Android and WebAssembly
- WebGL: this extension has very low support on mobile devices
- OpenGL ES 3.0 - Textures black
- OpenGL-glGetUniformLocation failed
Related Questions in WEBKIT
- "jumping effect" with sticky position on newer iOS devices
- Cannot display webkit Inspector in ultralight c++
- Webkit attributes do not disable/hide AirPlay button in Safari
- srcset in webkit in xcode
- Occasional deadlock when keyboard input in WKWebview
- rotateY() with perspective not rendering correctly on WebKit
- WKWebView's evaluateJavascript can't access functions in iOS 17
- Webkit callAsyncJavaScript not waitng for async await function call in SwiftUI
- antd scrollbar always visibile (problem on firefox)
- How to input multiple lines in WebKit JavaScriptCore shell?
- Is there a standard API definition for browser engines?
- Print HTML (with Images) to PDF in SwiftUI
- iOS WKWebView's WKProcessPool - when is it safe to share the same process space?
- Webkit scrollbar issue in mobile?
- Overlaying Scrollbar Similar to Spotify (Web) Using CSS and/or Javascript
Related Questions in TEXTURES
- LibGDX Normal Textures Not Showing Up in 3D (Blender) Model Java
- A way to warp an image based on a map
- Cracks in my automatic texture in Unreal engine 5
- Threejs .glb loading textures issue, texures not loaded
- Which format should be more smooth for complex R8 textures - BC4 or BC7?
- Unity render Texture is not as clear as the actual gameobject in the scene, how to make it clearer?
- Anyone else notcing delays of shared d3dtexture2D betweeen two processes?
- How to ensure the background texture joins up smoothly around sphere in Three.js?
- Update node's physicsbody with texture animation?
- Transfer GL_TEXTURE_2D Image to GL_TEXTURE_CUBE_MAP
- Converting Texture Atlas exported from Adobe Animate to Images
- WGPU: How to change max_bind_groups/device bind group limit?
- How to calculate Uvs from texture atlas?
- Downloaded model has no materials or textures
- Three.js Y Axis Offset for Equirectangular Image Not Working
Related Questions in COMPRESSION
- Should I compress images in java backend before sending to frontend?
- saving always adds artefacts to my images that photoshop doesn't
- Kafka compression on Broker side
- I am trying to compress video in Android using ffmpeg
- Compress gzip/Deflate string with golang
- how to convert different length of bits into byte array?
- knowledge distillation in a multistep model
- How to decompress the contents of a var to another var?
- Why response body not compressed when use webtestclient?
- How to monkey-patch np.savez_compressed to add compression level, without editing numpy's source files?
- incorrect header check while implementing GZIP in spring boot REST APIs
- Create algorhitm to create .pak file from unpack code
- Problem with decompressing algorithm in firefox (works in chrome/edge)
- Can I ignore some keyword while compressing css file through webpack? In other words I need a loader which just compress my file without validation
- PNG cropping increases file size
Related Questions in WEBGL-EXTENSIONS
- RGBA16UI support across browsers for WebGL2
- Enabling GL EXT_blend_minmax
- How to set UV attribute when using Instanced Drawing method in WebGL
- WebGL: use an ArrayBufferView of type Int16Array with texImage2D
- Is GL_EXT_draw_instanced supported in WebGL1
- Unity web gl game wont display loading screen and just is blank screen
- Is it possible to filter integer texture in WebGL?
- GLSL-ES3(webGL2): how to test extensions from fragment shader?
- Debugging in WebGL
- can I use multiple texture with drawArraysInstancedANGLE?
- Supporting WebGL1 + WebGL2
- No support for OES_texture_float, but WebGL2 is available
- Why do the webidl specifications for WebGL extensions have the [NoInterfaceObject] extended attribute
- How can I use WebGL extensions from web_sys in Rust
- How to profile WebGL with ext_disjoint_timer_query extension?
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?
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)