Skip to content

Conversation

@beicause
Copy link
Contributor

@beicause beicause commented Jan 15, 2026

Objective

Fixes #19148.
Should fix #19177, too, because wgpu webgl2 just doesn't support sampling depth or creating multisampled texture with TEXTURE_BINDING.

Solution

feature="webgl" and feature="webgpu" can enable together(webgpu overrides webgl), so we should bind multisampled depth texture even webgl feature is enabled.

Testing

Run decal example

@JMS55
Copy link
Contributor

JMS55 commented Jan 15, 2026

Rather than using cfg, we should be checking adapter info for the current backend imo.

@beicause
Copy link
Contributor Author

Rather than using cfg, we should be checking adapter info for the current backend imo.

This might not be necessary and is beyond the scope of this PR. We use feature gating for webgl/webgpu in many places and it doesn't have runtime checks overhead.

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen O-Web Specific to web (WASM) builds O-WebGPU Specific to the WebGPU render API labels Jan 15, 2026
@alice-i-cecile alice-i-cecile added the S-Needs-Testing Testing must be done before this is safe to merge label Jan 15, 2026
@alice-i-cecile alice-i-cecile added this to the 0.18.1 milestone Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior O-Web Specific to web (WASM) builds O-WebGPU Specific to the WebGPU render API S-Needs-Testing Testing must be done before this is safe to merge

Projects

Status: No status

3 participants