mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +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
|
|
@ -612,7 +612,7 @@ void MDCommandBuffer::_render_clear_render_area() {
|
|||
bool shouldClearStencil = (ds_index != RDD::AttachmentReference::UNUSED && pass.attachments[ds_index].shouldClear(subpass, true));
|
||||
if (shouldClearDepth || shouldClearStencil) {
|
||||
MDAttachment const &attachment = pass.attachments[ds_index];
|
||||
BitField<RDD::TextureAspectBits> bits;
|
||||
BitField<RDD::TextureAspectBits> bits = {};
|
||||
if (shouldClearDepth && attachment.type & MDAttachmentType::Depth) {
|
||||
bits.set_flag(RDD::TEXTURE_ASPECT_DEPTH_BIT);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue