graphics: hardcode downlevel to webgl2
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user