gpu: improve SupportedLimits query example
`supported` is a better variable name because `supported.limits.foobar` is the actual way it need be referenced, and `limits.limits.foobar` would be redundant. Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2fd8e876fd
commit
9d1c96ed0e
1 changed files with 2 additions and 2 deletions
|
|
@ -740,8 +740,8 @@ pub const RequiredLimits = extern struct {
|
||||||
/// Used to query limits from a Device or Adapter. Can be used as follows:
|
/// Used to query limits from a Device or Adapter. Can be used as follows:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// var limits: gpu.SupportedLimits = .{};
|
/// var supported: gpu.SupportedLimits = .{};
|
||||||
/// if (!adapter.getLimits(&limits)) @panic("unsupported options");
|
/// if (!adapter.getLimits(&supported)) @panic("unsupported options");
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// Note that `getLimits` can only fail if `next_in_chain` options are invalid.
|
/// Note that `getLimits` can only fail if `next_in_chain` options are invalid.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue