| 2832 | } |
| 2833 | |
| 2834 | RenderingDevice::FramebufferFormatID RenderingDevice::framebuffer_format_create(const Vector<AttachmentFormat> &p_format, uint32_t p_view_count, int32_t p_fragment_density_map_attachment) { |
| 2835 | FramebufferPass pass; |
| 2836 | for (int i = 0; i < p_format.size(); i++) { |
| 2837 | if (p_format[i].usage_flags & TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT) { |
| 2838 | pass.depth_attachment = i; |
| 2839 | } else { |
| 2840 | pass.color_attachments.push_back(i); |
| 2841 | } |
| 2842 | } |
| 2843 | |
| 2844 | Vector<FramebufferPass> passes; |
| 2845 | passes.push_back(pass); |
| 2846 | return framebuffer_format_create_multipass(p_format, passes, p_view_count, p_fragment_density_map_attachment); |
| 2847 | } |
| 2848 | |
| 2849 | RenderingDevice::FramebufferFormatID RenderingDevice::framebuffer_format_create_multipass(const Vector<AttachmentFormat> &p_attachments, const Vector<FramebufferPass> &p_passes, uint32_t p_view_count, int32_t p_vrs_attachment) { |
| 2850 | _THREAD_SAFE_METHOD_ |
no test coverage detected