|
2429 | 2429 | <a href="#2428" id="2428">2428</a> |
2430 | 2430 | <a href="#2429" id="2429">2429</a> |
2431 | 2431 | <a href="#2430" id="2430">2430</a> |
| 2432 | +<a href="#2431" id="2431">2431</a> |
| 2433 | +<a href="#2432" id="2432">2432</a> |
| 2434 | +<a href="#2433" id="2433">2433</a> |
| 2435 | +<a href="#2434" id="2434">2434</a> |
| 2436 | +<a href="#2435" id="2435">2435</a> |
| 2437 | +<a href="#2436" id="2436">2436</a> |
| 2438 | +<a href="#2437" id="2437">2437</a> |
| 2439 | +<a href="#2438" id="2438">2438</a> |
2432 | 2440 | </pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::conv; |
2433 | 2441 |
|
2434 | 2442 | <span class="kw">use </span>ash::{amd, ext, google, khr, vk}; |
|
3401 | 3409 | extensions.push(ext::robustness2::NAME); |
3402 | 3410 | } |
3403 | 3411 |
|
| 3412 | + <span class="comment">// Optional `VK_KHR_external_memory_win32` |
| 3413 | + </span><span class="kw">if </span><span class="self">self</span>.supports_extension(khr::external_memory_win32::NAME) { |
| 3414 | + extensions.push(khr::external_memory_win32::NAME); |
| 3415 | + } |
| 3416 | + |
3404 | 3417 | <span class="comment">// Require `VK_KHR_draw_indirect_count` if the associated feature was requested |
3405 | 3418 | // Even though Vulkan 1.2 has promoted the extension to core, we must require the extension to avoid |
3406 | 3419 | // large amounts of spaghetti involved with using PhysicalDeviceVulkan12Features. |
|
3970 | 3983 | }), |
3971 | 3984 | image_format_list: phd_capabilities.device_api_version >= vk::API_VERSION_1_2 |
3972 | 3985 | || phd_capabilities.supports_extension(khr::image_format_list::NAME), |
| 3986 | + <span class="attr">#[cfg(windows)] |
| 3987 | + </span>external_memory_win32: phd_capabilities |
| 3988 | + .supports_extension(khr::external_memory_win32::NAME), |
3973 | 3989 | }; |
3974 | 3990 | <span class="kw">let </span>capabilities = <span class="kw">crate</span>::Capabilities { |
3975 | 3991 | limits: phd_capabilities.to_wgpu_limits(), |
|
0 commit comments