| 7413 | } |
| 7414 | |
| 7415 | bool RenderingDevice::has_feature(const Features p_feature) const { |
| 7416 | // Some features can be deduced from the capabilities without querying the driver and looking at the capabilities. |
| 7417 | switch (p_feature) { |
| 7418 | case SUPPORTS_MULTIVIEW: { |
| 7419 | const RDD::MultiviewCapabilities &multiview_capabilities = driver->get_multiview_capabilities(); |
| 7420 | return multiview_capabilities.is_supported && multiview_capabilities.max_view_count > 1; |
| 7421 | } |
| 7422 | case SUPPORTS_ATTACHMENT_VRS: { |
| 7423 | const RDD::FragmentShadingRateCapabilities &fsr_capabilities = driver->get_fragment_shading_rate_capabilities(); |
| 7424 | const RDD::FragmentDensityMapCapabilities &fdm_capabilities = driver->get_fragment_density_map_capabilities(); |
| 7425 | return fsr_capabilities.attachment_supported || fdm_capabilities.attachment_supported; |
| 7426 | } |
| 7427 | default: |
| 7428 | return driver->has_feature(p_feature); |
| 7429 | } |
| 7430 | } |
| 7431 | |
| 7432 | void RenderingDevice::_bind_methods() { |
| 7433 | ClassDB::bind_method(D_METHOD("texture_create", "format", "view", "data"), &RenderingDevice::_texture_create, DEFVAL(Array())); |
no outgoing calls
no test coverage detected