Skip to content

Commit 961be24

Browse files
authored
Warn about Limits::max_non_sampler_bindings's default 1_000_000 (#8447)
1 parent 0653290 commit 961be24

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wgpu-types/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,11 @@ pub struct Limits {
685685
pub max_push_constant_size: u32,
686686
/// Maximum number of live non-sampler bindings.
687687
///
688+
/// <div class="warning">
689+
/// The default value is **1_000_000**, On systems with integrated GPUs (iGPUs)—particularly on Windows using the D3D12
690+
/// backend—this can lead to significant system RAM consumption since iGPUs share system memory directly with the CPU.
691+
/// </div>
692+
///
688693
/// This limit only affects the d3d12 backend. Using a large number will allow the device
689694
/// to create many bind groups at the cost of a large up-front allocation at device creation.
690695
pub max_non_sampler_bindings: u32,

0 commit comments

Comments
 (0)