|
600 | 600 | <a href="#599" id="599">599</a> |
601 | 601 | <a href="#600" id="600">600</a> |
602 | 602 | <a href="#601" id="601">601</a> |
603 | | -<a href="#602" id="602">602</a></pre></div><pre class="rust"><code><span class="doccomment">//! Types for dealing with Instances |
| 603 | +<a href="#602" id="602">602</a> |
| 604 | +<a href="#603" id="603">603</a> |
| 605 | +<a href="#604" id="604">604</a> |
| 606 | +<a href="#605" id="605">605</a> |
| 607 | +<a href="#606" id="606">606</a> |
| 608 | +<a href="#607" id="607">607</a> |
| 609 | +<a href="#608" id="608">608</a> |
| 610 | +<a href="#609" id="609">609</a> |
| 611 | +<a href="#610" id="610">610</a> |
| 612 | +<a href="#611" id="611">611</a> |
| 613 | +<a href="#612" id="612">612</a> |
| 614 | +<a href="#613" id="613">613</a> |
| 615 | +<a href="#614" id="614">614</a> |
| 616 | +<a href="#615" id="615">615</a> |
| 617 | +<a href="#616" id="616">616</a> |
| 618 | +<a href="#617" id="617">617</a> |
| 619 | +<a href="#618" id="618">618</a> |
| 620 | +<a href="#619" id="619">619</a> |
| 621 | +<a href="#620" id="620">620</a> |
| 622 | +<a href="#621" id="621">621</a> |
| 623 | +<a href="#622" id="622">622</a></pre></div><pre class="rust"><code><span class="doccomment">//! Types for dealing with Instances |
604 | 624 |
|
605 | 625 | </span><span class="kw">use </span>alloc::string::String; |
606 | 626 |
|
|
672 | 692 | /// |
673 | 693 | /// When `Self::from_env()` is used takes value from `WGPU_DEBUG` environment variable. |
674 | 694 | </span><span class="kw">const </span>DEBUG = <span class="number">1 </span><< <span class="number">0</span>; |
675 | | - <span class="doccomment">/// Enable validation, if possible. |
| 695 | + <span class="doccomment">/// Enable validation in the backend API, if possible: |
676 | 696 | /// |
677 | | - /// When `Self::from_env()` is used takes value from `WGPU_VALIDATION` environment variable. |
| 697 | + /// - On the Direct3D `dx12` backend, this calls [`ID3D12Debug::EnableDebugLayer`][dx12]. |
| 698 | + /// |
| 699 | + /// - On the Vulkan backend, this enables the [Vulkan Validation Layer][vvl]. |
| 700 | + /// |
| 701 | + /// - On the `gles` backend driving Windows OpenGL, this enables [debug |
| 702 | + /// output][gl:do], effectively calling `glEnable(GL_DEBUG_OUTPUT)`. |
| 703 | + /// |
| 704 | + /// - On non-Windows `gles` backends, this calls |
| 705 | + /// [`eglDebugMessageControlKHR`][gl:dm] to enable all debugging messages. |
| 706 | + /// If the GLES implementation is ANGLE running on Vulkan, this also |
| 707 | + /// enables the Vulkan validation layers by setting |
| 708 | + /// [`EGL_PLATFORM_ANGLE_DEBUG_LAYERS_ENABLED`][gl:av]. |
| 709 | + /// |
| 710 | + /// When `Self::from_env()` is used, this bit is set if the `WGPU_VALIDATION` |
| 711 | + /// environment variable has any value but "0". |
| 712 | + /// |
| 713 | + /// [dx12]: https://learn.microsoft.com/en-us/windows/win32/api/d3d12sdklayers/nf-d3d12sdklayers-id3d12debug-enabledebuglayer |
| 714 | + /// [vvl]: https://github.com/KhronosGroup/Vulkan-ValidationLayers |
| 715 | + /// [gl:dm]: https://registry.khronos.org/EGL/extensions/KHR/EGL_KHR_debug.txt |
| 716 | + /// [gl:do]: https://www.khronos.org/opengl/wiki/Debug_Output |
| 717 | + /// [gl:av]: https://chromium.googlesource.com/angle/angle/+/HEAD/extensions/EGL_ANGLE_platform_angle.txt |
678 | 718 | </span><span class="kw">const </span>VALIDATION = <span class="number">1 </span><< <span class="number">1</span>; |
679 | 719 | <span class="doccomment">/// Don't pass labels to wgpu-hal. |
680 | 720 | /// |
|
0 commit comments