|
2641 | 2641 | <a href="#2640" id="2640">2640</a> |
2642 | 2642 | <a href="#2641" id="2641">2641</a> |
2643 | 2643 | <a href="#2642" id="2642">2642</a> |
2644 | | -<a href="#2643" id="2643">2643</a></pre></div><pre class="rust"><code><span class="kw">use </span>std::{borrow::ToOwned <span class="kw">as _</span>, collections::BTreeMap, ffi::CStr, sync::Arc, vec::Vec}; |
| 2644 | +<a href="#2643" id="2643">2643</a> |
| 2645 | +<a href="#2644" id="2644">2644</a> |
| 2646 | +<a href="#2645" id="2645">2645</a> |
| 2647 | +<a href="#2646" id="2646">2646</a> |
| 2648 | +<a href="#2647" id="2647">2647</a> |
| 2649 | +<a href="#2648" id="2648">2648</a> |
| 2650 | +<a href="#2649" id="2649">2649</a> |
| 2651 | +<a href="#2650" id="2650">2650</a> |
| 2652 | +<a href="#2651" id="2651">2651</a> |
| 2653 | +<a href="#2652" id="2652">2652</a> |
| 2654 | +<a href="#2653" id="2653">2653</a></pre></div><pre class="rust"><code><span class="kw">use </span>std::{borrow::ToOwned <span class="kw">as _</span>, collections::BTreeMap, ffi::CStr, sync::Arc, vec::Vec}; |
2645 | 2655 |
|
2646 | 2656 | <span class="kw">use </span>ash::{amd, ext, google, khr, vk}; |
2647 | 2657 | <span class="kw">use </span>parking_lot::Mutex; |
|
3694 | 3704 | extensions.push(khr::external_memory_win32::NAME); |
3695 | 3705 | } |
3696 | 3706 |
|
| 3707 | + <span class="comment">// Optional `VK_KHR_external_memory_fd` |
| 3708 | + </span><span class="kw">if </span><span class="self">self</span>.supports_extension(khr::external_memory_fd::NAME) { |
| 3709 | + extensions.push(khr::external_memory_fd::NAME); |
| 3710 | + } |
| 3711 | + |
| 3712 | + <span class="comment">// Optional `VK_EXT_external_memory_dma` |
| 3713 | + </span><span class="kw">if </span><span class="self">self</span>.supports_extension(ext::external_memory_dma_buf::NAME) { |
| 3714 | + extensions.push(ext::external_memory_dma_buf::NAME); |
| 3715 | + } |
| 3716 | + |
3697 | 3717 | <span class="comment">// Require `VK_KHR_draw_indirect_count` if the associated feature was requested |
3698 | 3718 | // Even though Vulkan 1.2 has promoted the extension to core, we must require the extension to avoid |
3699 | 3719 | // large amounts of spaghetti involved with using PhysicalDeviceVulkan12Features. |
|
0 commit comments