-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: master
Are you sure you want to change the base?
Changes from all commits
5c85f33
05ae79f
299428f
27021eb
917e7f3
2a9099b
b2e8098
32ca63a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.cache/ | ||
/build/ | ||
clang-toolchain.cmake | ||
CMakeUserPresets.json | ||
recent_gltf.txt | ||
recent_skybox.txt | ||
/triplets/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,10 +69,15 @@ import :vulkan.pipeline.CubemapToneMappingRenderer; | |
vk_gltf_viewer::MainApp::MainApp() { | ||
const vulkan::pipeline::BrdfmapComputer brdfmapComputer { gpu.device }; | ||
|
||
const vk::raii::DescriptorPool descriptorPool { | ||
gpu.device, | ||
brdfmapComputer.descriptorSetLayout.getPoolSize().getDescriptorPoolCreateInfo(), | ||
}; | ||
|
||
vk::DescriptorPoolCreateInfo descriptorPoolCreateInfo = brdfmapComputer.descriptorSetLayout.getPoolSize().getDescriptorPoolCreateInfo(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would not be work. You should pass There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok thanks :) |
||
descriptorPoolCreateInfo.flags |= vk::DescriptorPoolCreateFlagBits::eFreeDescriptorSet; | ||
|
||
const vk::raii::DescriptorPool descriptorPool { | ||
gpu.device, | ||
descriptorPoolCreateInfo, | ||
}; | ||
|
||
|
||
const auto [brdfmapSet] = allocateDescriptorSets(*gpu.device, *descriptorPool, std::tie(brdfmapComputer.descriptorSetLayout)); | ||
gpu.device.updateDescriptorSets( | ||
|
@@ -202,7 +207,7 @@ vk_gltf_viewer::MainApp::MainApp() { | |
#elif __APPLE__ | ||
"/Library/Fonts/Arial Unicode.ttf", | ||
#elif __linux__ | ||
"/usr/share/fonts/truetype/ubuntu/Ubuntu-R.ttf", | ||
"/usr/share/fonts/noto/NotoSansMono-Medium.ttf", | ||
#else | ||
#error "Type your own font file in here!" | ||
#endif | ||
|
@@ -679,7 +684,7 @@ vk::raii::SwapchainKHR vk_gltf_viewer::MainApp::createSwapchain(vk::SwapchainKHR | |
// memory used by presentable images. | ||
// | ||
// Therefore, if maxImageCount is zero, it is set to the UINT_MAX and minImageCount + 1 will be used. | ||
std::min(surfaceCapabilities.minImageCount + 1, surfaceCapabilities.maxImageCount == 0 ? ~0U : surfaceCapabilities.maxImageCount), | ||
std::min(surfaceCapabilities.minImageCount + 1, surfaceCapabilities.maxImageCount == 0 ? ~0U : surfaceCapabilities.maxImageCount), | ||
vk::Format::eB8G8R8A8Srgb, | ||
vk::ColorSpaceKHR::eSrgbNonlinear, | ||
swapchainExtent, | ||
|
There was a problem hiding this comment.
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?