graphics: hardcode downlevel to webgl2

This commit is contained in:
2026-03-04 09:20:41 -08:00
parent 67d39d5e03
commit 378619045f
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ struct ModelInstance{
//the texture transform then maps the texture coordinates to the location of the specific texture
//group 1 is the model
// This is equal to the CHUNK_SIZE constant from graphics.rs
const MAX_MODEL_INSTANCES=455;
const MAX_MODEL_INSTANCES=113;
@group(2)
@binding(0)
var<uniform> model_instances: array<ModelInstance, MAX_MODEL_INSTANCES>;

View File

@@ -6,7 +6,7 @@ fn required_features()->wgpu::Features{
wgpu::Features::TEXTURE_COMPRESSION_BC
}
pub const fn required_limits()->wgpu::Limits{
wgpu::Limits::defaults()
wgpu::Limits::downlevel_webgl2_defaults()
}
fn required_downlevel_capabilities()->wgpu::DownlevelCapabilities{
wgpu::DownlevelCapabilities{