mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Core: Add dedicated BitField
template
This commit is contained in:
parent
7b9c5122fa
commit
0d267e7b1e
46 changed files with 188 additions and 155 deletions
|
@ -4407,7 +4407,7 @@ RenderingDevice::DrawListID RenderingDevice::draw_list_begin(RID p_framebuffer,
|
|||
thread_local LocalVector<RDD::RenderPassClearValue> clear_values;
|
||||
thread_local LocalVector<RDG::ResourceTracker *> resource_trackers;
|
||||
thread_local LocalVector<RDG::ResourceUsage> resource_usages;
|
||||
BitField<RDD::PipelineStageBits> stages;
|
||||
BitField<RDD::PipelineStageBits> stages = {};
|
||||
operations.resize(framebuffer->texture_ids.size());
|
||||
clear_values.resize(framebuffer->texture_ids.size());
|
||||
resource_trackers.clear();
|
||||
|
@ -6694,7 +6694,7 @@ Error RenderingDevice::initialize(RenderingContextDriver *p_context, DisplayServ
|
|||
// Pick the main queue family. It is worth noting we explicitly do not request the transfer bit, as apparently the specification defines
|
||||
// that the existence of either the graphics or compute bit implies that the queue can also do transfer operations, but it is optional
|
||||
// to indicate whether it supports them or not with the dedicated transfer bit if either is set.
|
||||
BitField<RDD::CommandQueueFamilyBits> main_queue_bits;
|
||||
BitField<RDD::CommandQueueFamilyBits> main_queue_bits = {};
|
||||
main_queue_bits.set_flag(RDD::COMMAND_QUEUE_FAMILY_GRAPHICS_BIT);
|
||||
main_queue_bits.set_flag(RDD::COMMAND_QUEUE_FAMILY_COMPUTE_BIT);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue