Skip to content

Commit 52a1c16

Browse files
committed
Warn about Limits::max_non_sampler_bindings's default 1_000_000
1 parent 098f320 commit 52a1c16

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wgpu-types/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,12 @@ macro_rules! with_limits {
547547
/// limits you need boosted. This will let you stay running on all hardware that supports the limits
548548
/// you need.
549549
///
550+
/// For example, [`Limits::max_non_sampler_bindings`]'s default limit is **1_000_000**:
551+
/// <div class="warning">
552+
/// On systems with integrated GPUs (iGPUs)—particularly on Windows using the D3D12
553+
/// backend—this can lead to significant system RAM consumption since iGPUs share system memory directly with the CPU.
554+
/// </div>
555+
///
550556
/// Limits "better" than the default must be supported by the adapter and requested when requesting
551557
/// a device. If limits "better" than the adapter supports are requested, requesting a device will
552558
/// panic. Once a device is requested, you may only use resources up to the limits requested _even_

0 commit comments

Comments
 (0)