Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge changes in VSG master into 1.0 branch in prep for 1.0.8 release #882

Merged
merged 41 commits into from
Jul 20, 2023

Conversation

robertosfield
Copy link
Collaborator

No description provided.

remoe and others added 30 commits June 23, 2023 11:44
Replaced WindowTraits::sharedWindow with Window::device, and added Viewer::removeWindow(..) method.
The template is officially defined in type_traits. I thought that this
was causing a compilation problem with clang; it turns out it wasn't,
but we can't depend on it being magically defined somewhere else.
include type_traits for std::is_floating_point_v
…Layout(...) and ShaderSet::createPipelineLayout(..) methods to help with creation of pipeline layouts indepdently from GraphcisPipelineConfigurator
Invalid layerCount was passed to vkCmdBlitImage when generating mipmaps for an array texture. In the code that loops over arrayLayers and blits each layer, layerCount should have been set to 1, not arrayLayers.

Fixed by removing the loop. Let Vulkan loop over the image layers using a single blit of baseArrayLayer=0, layerCount=arrayLayers.

Test case:

auto imageData = vsg::ubvec4Array3D::create(256, 256, 32, vsg::ubvec4(), vsg::Data::Properties(VK_FORMAT_R8G8B8A8_UNORM));
imageData->properties.imageViewType = VK_IMAGE_VIEW_TYPE_2D_ARRAY;
sampler->maxLod = 4; // Generate mipmaps
[FIXED] VK_LOD_CLAMP_NONE computed mipmap levels
@robertosfield robertosfield merged commit 8b6b753 into VulkanSceneGraph-1.0 Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants