mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Increase GL MAX_PUSH_CONSTANTS from 16 to 64 (#3374)
This commit is contained in:
@@ -134,6 +134,7 @@ Additionally `Surface::get_default_config` now returns an Option and returns Non
|
||||
#### GLES
|
||||
|
||||
- Browsers that support `OVR_multiview2` now report the `MULTIVIEW` feature by @expenses in [#3121](https://github.com/gfx-rs/wgpu/pull/3121).
|
||||
- `Limits::max_push_constant_size` on GLES is now 256 by @Dinnerbone in [#3374](https://github.com/gfx-rs/wgpu/pull/3374).
|
||||
|
||||
#### Vulkan
|
||||
|
||||
|
||||
@@ -372,7 +372,8 @@ impl super::Device {
|
||||
}
|
||||
}
|
||||
|
||||
let mut uniforms: [super::UniformDesc; super::MAX_PUSH_CONSTANTS] = Default::default();
|
||||
let mut uniforms: [super::UniformDesc; super::MAX_PUSH_CONSTANTS] =
|
||||
[None; super::MAX_PUSH_CONSTANTS].map(|_: Option<()>| Default::default());
|
||||
let count = unsafe { gl.get_active_uniforms(program) };
|
||||
let mut offset = 0;
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ const MAX_TEXTURE_SLOTS: usize = 16;
|
||||
const MAX_SAMPLERS: usize = 16;
|
||||
const MAX_VERTEX_ATTRIBUTES: usize = 16;
|
||||
const ZERO_BUFFER_SIZE: usize = 256 << 10;
|
||||
const MAX_PUSH_CONSTANTS: usize = 16;
|
||||
const MAX_PUSH_CONSTANTS: usize = 64;
|
||||
|
||||
impl crate::Api for Api {
|
||||
type Instance = Instance;
|
||||
|
||||
@@ -221,7 +221,8 @@ fn push_constant_input() {
|
||||
.limits(Limits {
|
||||
max_push_constant_size: MAX_BUFFER_SIZE as u32,
|
||||
..Limits::downlevel_defaults()
|
||||
}),
|
||||
})
|
||||
.backend_failure(Backends::GL),
|
||||
|ctx| {
|
||||
shader_input_output_test(
|
||||
ctx,
|
||||
|
||||
Reference in New Issue
Block a user