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

Working inside linux #12

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Abhinavpatel00
Copy link

PR to get it properly working on linux

@Abhinavpatel00
Copy link
Author

image
assets are not loaded properly

@Abhinavpatel00
Copy link
Author

well as i got through gdb that this project is using nativefiledialog, which currently doesnt support wayland so people using wayland might have problem here
for more context btzy/nativefiledialog-extended#153

@stripe2933 stripe2933 self-requested a review December 21, 2024 05:14
README.md Outdated
@@ -207,7 +207,7 @@ Add the following CMake user preset file in your project directory. I'll assume
"inherits": "default",
"cacheVariables": {
"CMAKE_C_COMPILER": "/usr/bin/clang-18",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also change clang-18 to clang?

[^3]: On Apple GPU platform prior to the MoltenVK 1.2.11 (which enables the Metal Argument Buffer by default), [`maxPerStageDescriptorUpdateAfterBindStorageImages` is 8](https://vulkan.gpuinfo.org/displaycoreproperty.php?platform=macos&name=maxPerStageDescriptorUpdateAfterBindStorageImages&core=1.2). It limited the cubemap resoluton and prefilteredmap roughnesslevels. Instead, it can use `VK_AMD_shader_image_load_store_lod` extension to replace the descriptor indexing based cubemap mipmapping and prefilteredmap generation.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this line has been changed?

brdfmapComputer.descriptorSetLayout.getPoolSize().getDescriptorPoolCreateInfo(),
};

vk::DescriptorPoolCreateInfo descriptorPoolCreateInfo = brdfmapComputer.descriptorSetLayout.getPoolSize().getDescriptorPoolCreateInfo();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would not be work. vku::PoolSizes::getDescriptorPoolCreateInfo returns both vk::DescriptorPoolCreateInfo and std::vector<vk::DescriptorPoolSize> via vku::RefHolder (former references the latter), but store it into vk::DescriptorPoolCreateInfo will destroy the pool size vector.

You should pass vk::DescriptorPoolCreateFlagBits::eFreeDescriptorSet to the method by parameter and use the struct directly.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok thanks :)

.getDescriptorPoolCreateInfo(),
};

auto poolCreateInfo =
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@@ -7,6 +7,7 @@ import :vulkan.pipeline.BrdfmapComputer;

import std;

#define COMPILED_SHADER_DIR "shader"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it already defined by CMakeLists.txt?

target_link_shaders(vk-gltf-viewer

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it already defined by CMakeLists.txt?

target_link_shaders(vk-gltf-viewer

yeah sorry for not being careful temporarily put it there because i was getting error there while calling binary as ./build/vk-gltf-viewer

@stripe2933
Copy link
Owner

I'll work for NFD in Wayland support.

@stripe2933 stripe2933 mentioned this pull request Dec 21, 2024
@stripe2933
Copy link
Owner

Fix for NFD in Wayland merged in master branch.

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.

2 participants