mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
Warn about Limits::max_non_sampler_bindings's default 1_000_000 (#8447)
This commit is contained in:
1 parent
065329000b
commit
961be24246
1 file changed
+5
@@ -685,6 +685,11 @@ pub struct Limits {
|
||||
pub max_push_constant_size: u32,
|
||||
/// Maximum number of live non-sampler bindings.
|
||||
///
|
||||
/// <div class="warning">
|
||||
/// The default value is **1_000_000**, On systems with integrated GPUs (iGPUs)—particularly on Windows using the D3D12
|
||||
/// backend—this can lead to significant system RAM consumption since iGPUs share system memory directly with the CPU.
|
||||
/// </div>
|
||||
///
|
||||
/// This limit only affects the d3d12 backend. Using a large number will allow the device
|
||||
/// to create many bind groups at the cost of a large up-front allocation at device creation.
|
||||
pub max_non_sampler_bindings: u32,
|
||||
|
||||
Reference in new issue
Block a user