Use texelFetch/textureLoad for WebGL2/WGSL#17811
Conversation
sebavan
left a comment
There was a problem hiding this comment.
This is really nice !!! I would be in favor of keeping the uniforms in both cases to prevent the extra cpu usage of the checks and such everyframe.
The conditionnal part in the shader coud be #ifdef WEBGL1 ? so that soon-ish we could get rid of it alltogether :-)
Love the focus on perf here
|
I have reflected all the requested changes. 😀 |
|
@sebavan I want to see if it passes CI testing, can I run the pipeline...? |
|
/azurepipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). |
|
Snapshot stored with reference name: Test environment: To test a playground add it to the URL, for example: https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17811/merge/index.html#WGZLGJ#4600 Links to test your changes to core in the published versions of the Babylon tools (does not contain changes you made to the tools themselves): https://playground.babylonjs.com/?snapshot=refs/pull/17811/merge To test the snapshot in the playground with a playground ID add it after the snapshot query string: https://playground.babylonjs.com/?snapshot=refs/pull/17811/merge#BCU1XR#0 If you made changes to the sandbox or playground in this PR, additional comments will be generated soon containing links to the dev versions of those tools. |
|
Devhost visualization test reporter: |
|
WebGL2 visualization test reporter: |
|
Visualization tests for WebGPU |
Head branch was pushed to by a user without write access
|
/azurepipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Devhost visualization test reporter: |
|
WebGL2 visualization test reporter: |
|
Visualization tests for WebGPU |
Head branch was pushed to by a user without write access
|
@sebavan run CI again please 😭 |
|
/azp run
Best Regards,
Sébastien VANDENBERGHE
…On Thu, Feb 5, 2026 at 10:54 noname ***@***.***> wrote:
*noname0310* left a comment (BabylonJS/Babylon.js#17811)
<#17811 (comment)>
@sebavan <https://github.com/sebavan> run CI again please 😭
—
Reply to this email directly, view it on GitHub
<#17811 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD7CGPKPU4ZLGOAROZYWHRD4KMHN7AVCNFSM6AAAAACT2MIDVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQNJSGQYDKOJYHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
Command 'run
Best' is not supported by Azure Pipelines.
See additional documentation. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Visualization tests for WebGPU |
|
WebGL2 visualization test reporter: |
|
Devhost visualization test reporter: |
|
@noname0310 consider it merged, I am fixing the native part on the side |
supercedes #17811 to merge it Thanks a ton @noname0310 --------- Co-authored-by: noname0310 <hjnam2014@gmail.com>
|
@noname0310 it has been merged, only the thin instances to go :-) and I ll merge the doc |
This PR replaces
texture2DandtexturewithtexelFetchandtextureLoad.This allows us to reduce the number of uniform variables by one when using Bone and VAT in WebGL2 and WebGPU,
while also simplifying the code.
If you feel this optimization is too aggressive or unnecessary, please share your thoughts.