mosra on master
AssimpImporter: Add test that f… AssimpImporter: Fix loading of … AssimpImporter: make the ifdef … and 1 more (compare)
mosra on next
AssimpImporter: Add test that f… AssimpImporter: Fix loading of … AssimpImporter: make the ifdef … and 1 more (compare)
_size = size;
auto halfSize = Vector2i{ size.x() / 2, size.y() };
auto& bufferGroup = _bufferGroup[index];
// RenderBuffer Resize
bufferGroup.colorBuffer = GL::Renderbuffer{};
bufferGroup.depthStencilBuffer = GL::Renderbuffer{};
bufferGroup.colorBuffer.setStorageMultisample(GL::Renderbuffer::maxSamples(), GL::RenderbufferFormat::RGBA8, halfSize);
bufferGroup.depthStencilBuffer.setStorageMultisample(GL::Renderbuffer::maxSamples(), GL::RenderbufferFormat::Depth24Stencil8, halfSize);
// MSAA Framebuffer Resize
bufferGroup.framebufferMSAA = GL::Framebuffer{ { {}, halfSize }};
bufferGroup.framebufferMSAA
.attachRenderbuffer(GL::Framebuffer::ColorAttachment{ 0 }, bufferGroup.colorBuffer)
.attachRenderbuffer(GL::Framebuffer::BufferAttachment::DepthStencil, bufferGroup.depthStencilBuffer)
.mapForDraw({ {Shaders::PhongGL::ColorOutput, GL::Framebuffer::ColorAttachment{0}} });
bufferGroup.framebufferMSAA.setViewport({ {}, halfSize });
// camera viewport setting
_camera.reshape(size, halfSize);
resize code called on glfw viewport change event
0x00ffff_rgbf
right after the recreation, does that color appear in the default framebuffer?
it works fine when I use the 'default' blit.
if i understand correctly what you mean, the default blit is only implicitly passing the size, but it's the same operation underneath so it shouldn't matter
Containers::StridedArrayView2D<std::uint32_t> image = images[5];
images[4]
?
const auto slice0 = image->pixels<Color4ub>().prefix<2>({1, image->size()[1], image->size()[0]});
27, 1
and I'm not sure what I'm doing
63, 27,3
and I want 63, 27
pixels<T>()[i]
pixels<T>().transposed<0, 2>()[i]
, where the transpose turns it from XYZ order to ZYX
image->pixels<Color4ub>().prefix<2>(1)
but there doesn't seem to be such an overload
prefix<2>
it discards the last dimension, taking just the first slice out of it
1, 27
, yeah
prefix<n>()
takes dimensions off the end, [i]
off the start, so you need the []
here