You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[DisplayServer] Add method to check if window transparency is supported and enabled.
This commit is contained in:
@@ -2646,6 +2646,7 @@ Error RenderingDeviceDriverVulkan::swap_chain_resize(CommandQueueID p_cmd_queue,
|
||||
break;
|
||||
}
|
||||
}
|
||||
has_comp_alpha[(uint64_t)p_cmd_queue.id] = (composite_alpha != VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR);
|
||||
}
|
||||
|
||||
VkSwapchainCreateInfoKHR swap_create_info = {};
|
||||
@@ -4945,6 +4946,13 @@ const RDD::Capabilities &RenderingDeviceDriverVulkan::get_capabilities() const {
|
||||
return device_capabilities;
|
||||
}
|
||||
|
||||
bool RenderingDeviceDriverVulkan::is_composite_alpha_supported(CommandQueueID p_queue) const {
|
||||
if (has_comp_alpha.has((uint64_t)p_queue.id)) {
|
||||
return has_comp_alpha[(uint64_t)p_queue.id];
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/******************/
|
||||
|
||||
RenderingDeviceDriverVulkan::RenderingDeviceDriverVulkan(RenderingContextDriverVulkan *p_context_driver) {
|
||||
|
||||
Reference in New Issue
Block a user