| 1114 | } |
| 1115 | |
| 1116 | bool DynamicRenderingInfo::Attachment::IsWriteable(const LastBound& last_bound_state) const { |
| 1117 | bool writeable = IsValid(); |
| 1118 | if (writeable) { |
| 1119 | // Depth and Stencil have additional criteria |
| 1120 | if (type == AttachmentType::kDepth) { |
| 1121 | writeable = |
| 1122 | last_bound_state.IsDepthWriteEnable() && IsDepthAttachmentWriteable(last_bound_state, view->create_info.format); |
| 1123 | } else if (type == AttachmentType::kStencil) { |
| 1124 | writeable = |
| 1125 | last_bound_state.IsStencilTestEnable() && IsStencilAttachmentWriteable(last_bound_state, view->create_info.format); |
| 1126 | } |
| 1127 | } |
| 1128 | return writeable; |
| 1129 | } |
| 1130 | |
| 1131 | } // namespace syncval |
no test coverage detected