Skip to content

Framebuffer::add_attachment compares image view height with framebuffer layersCount #48

@FibHeap

Description

@FibHeap

For layered rendering one wants to attach a layered 2D image view to a layered framebuffer.
The base mipmap level of such an image view is W x H x 1. This dimensions is seems to be compared to W x H and layers of the framebuffer.

framebuffer.cpp:152

 if (view_size[0] < m_framebuffer_size[0] ||
     view_size[1] < m_framebuffer_size[1] ||
     view_size[2] < m_framebuffer_size[2])
 {
     /* Attachment size is wrong */
     anvil_assert_fail();

    goto end;
 }

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions