|
1133 | 1133 | <a href="#1132" id="1132">1132</a> |
1134 | 1134 | <a href="#1133" id="1133">1133</a> |
1135 | 1135 | <a href="#1134" id="1134">1134</a> |
1136 | | -<a href="#1135" id="1135">1135</a></pre></div><pre class="rust"><code><span class="kw">use </span>std::{ |
| 1136 | +<a href="#1135" id="1135">1135</a> |
| 1137 | +<a href="#1136" id="1136">1136</a> |
| 1138 | +<a href="#1137" id="1137">1137</a> |
| 1139 | +<a href="#1138" id="1138">1138</a> |
| 1140 | +<a href="#1139" id="1139">1139</a> |
| 1141 | +<a href="#1140" id="1140">1140</a> |
| 1142 | +<a href="#1141" id="1141">1141</a></pre></div><pre class="rust"><code><span class="kw">use </span>std::{ |
1137 | 1143 | borrow::ToOwned <span class="kw">as _</span>, |
1138 | 1144 | boxed::Box, |
1139 | 1145 | ffi::{c_void, CStr, CString}, |
|
1392 | 1398 | <span class="comment">// VK_KHR_surface |
1393 | 1399 | </span>extensions.push(khr::surface::NAME); |
1394 | 1400 |
|
1395 | | - <span class="comment">// Extensions needed for drm support |
1396 | | - </span>extensions.push(khr::display::NAME); |
1397 | | - extensions.push(ext::physical_device_drm::NAME); |
1398 | | - extensions.push(khr::get_display_properties2::NAME); |
1399 | | - extensions.push(ext::direct_mode_display::NAME); |
1400 | | - extensions.push(ext::acquire_drm_display::NAME); |
1401 | | - |
1402 | 1401 | <span class="comment">// Platform-specific WSI extensions |
1403 | 1402 | </span><span class="kw">if </span><span class="macro">cfg!</span>(all( |
1404 | 1403 | unix, |
|
1425 | 1424 | </span>extensions.push(ext::metal_surface::NAME); |
1426 | 1425 | extensions.push(khr::portability_enumeration::NAME); |
1427 | 1426 | } |
| 1427 | + <span class="kw">if </span><span class="macro">cfg!</span>(all( |
| 1428 | + unix, |
| 1429 | + not(target_vendor = <span class="string">"apple"</span>), |
| 1430 | + not(target_family = <span class="string">"wasm"</span>) |
| 1431 | + )) { |
| 1432 | + <span class="comment">// VK_EXT_acquire_drm_display -> VK_EXT_direct_mode_display -> VK_KHR_display |
| 1433 | + </span>extensions.push(ext::acquire_drm_display::NAME); |
| 1434 | + extensions.push(ext::direct_mode_display::NAME); |
| 1435 | + extensions.push(khr::display::NAME); |
| 1436 | + <span class="comment">// VK_EXT_physical_device_drm -> VK_KHR_get_physical_device_properties2 |
| 1437 | + </span>extensions.push(ext::physical_device_drm::NAME); |
| 1438 | + extensions.push(khr::get_display_properties2::NAME); |
| 1439 | + } |
1428 | 1440 |
|
1429 | 1441 | <span class="kw">if </span>flags.contains(wgt::InstanceFlags::DEBUG) { |
1430 | 1442 | <span class="comment">// VK_EXT_debug_utils |
|
0 commit comments