MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / has_feature

Method has_feature

servers/rendering/rendering_device.cpp:7415–7430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7413}
7414
7415bool 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
7432void RenderingDevice::_bind_methods() {
7433 ClassDB::bind_method(D_METHOD("texture_create", "format", "view", "data"), &RenderingDevice::_texture_create, DEFVAL(Array()));

Callers 11

is_vrs_supportedMethod · 0.45
FSRMethod · 0.45
FSR2EffectMethod · 0.45
_get_fog_shader_groupMethod · 0.45
_get_fog_variantMethod · 0.45
initMethod · 0.45
TextureStorageMethod · 0.45
initMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected