Comments (2)
While here, I might as well post a warning that was encountered when compiling vgelib/command.cpp
. Of course, this is less critical to fix, but fixing warnings for the default build makes it easier to spot real errors.
[ 70%] Building CXX object CMakeFiles/VGELib.dir/vgelib/command.cpp.o
/home/u/Desktop/VGE/cpp/vgelib/command.cpp: In member function ‘void vge::Queue::submit(vge::Command*, vge::SubmitInfo**, size_t, vk::PipelineStageFlags, vge::SubmitInfo*&)’:
/home/u/Desktop/VGE/cpp/vgelib/command.cpp:52:32: warning: ignoring return value of ‘vk::Result vk::Device::resetFences(uint32_t, const vk::Fence*, const Dispatch&) const [with Dispatch = vk::DispatchLoaderDynamic; uint32_t = unsigned int]’, declared with attribute ‘nodiscard’ [-Wunused-result]
52 | _dev->get_device().resetFences(1, &(cmd->_fence), _dev->get_dispatch());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/u/Desktop/VGE/cpp/vgelib/vgelib.hpp:11,
from /home/u/Desktop/VGE/cpp/vgelib/command.cpp:1:
/usr/include/vulkan/vulkan.hpp:88681:49: note: declared here
88681 | VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::resetFences( uint32_t fenceCount, const VULKAN_HPP_NAMESPACE::Fence* pFences, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
| ^~~~~~
/home/u/Desktop/VGE/cpp/vgelib/command.cpp:53:15: warning: ignoring return value of ‘vk::Result vk::Queue::submit(uint32_t, const vk::SubmitInfo*, vk::Fence, const Dispatch&) const [with Dispatch = vk::DispatchLoaderDynamic; uint32_t = unsigned int]’, declared with attribute ‘nodiscard’ [-Wunused-result]
53 | _queue.submit(1, &si, cmd->_fence, _dev->get_dispatch());
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/u/Desktop/VGE/cpp/vgelib/vgelib.hpp:11,
from /home/u/Desktop/VGE/cpp/vgelib/command.cpp:1:
/usr/include/vulkan/vulkan.hpp:92248:49: note: declared here
92248 | VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::submit( uint32_t submitCount, const VULKAN_HPP_NAMESPACE::SubmitInfo* pSubmits, VULKAN_HPP_NAMESPACE::Fence fence, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
| ^~~~~
/home/u/Desktop/VGE/cpp/vgelib/command.cpp: In member function ‘virtual void vge::Command::Dispose()’:
/home/u/Desktop/VGE/cpp/vgelib/command.cpp:63:35: warning: ignoring return value of ‘vk::Result vk::Device::waitForFences(uint32_t, const vk::Fence*, vk::Bool32, uint64_t, const Dispatch&) const [with Dispatch = vk::DispatchLoaderDynamic; uint32_t = unsigned int; vk::Bool32 = unsigned int; uint64_t = long unsigned int]’, declared with attribute ‘nodiscard’ [-Wunused-result]
63 | _dev->get_device().waitForFences(1, &_fence, 1, MaxTimeout, _dev->get_dispatch());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/u/Desktop/VGE/cpp/vgelib/vgelib.hpp:11,
from /home/u/Desktop/VGE/cpp/vgelib/command.cpp:1:
/usr/include/vulkan/vulkan.hpp:88893:49: note: declared here
88893 | VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForFences( uint32_t fenceCount, const VULKAN_HPP_NAMESPACE::Fence* pFences, VULKAN_HPP_NAMESPACE::Bool32 waitAll, uint64_t timeout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
| ^~~~~~
/home/u/Desktop/VGE/cpp/vgelib/command.cpp: In member function ‘void vge::Command::Wait()’:
/home/u/Desktop/VGE/cpp/vgelib/command.cpp:216:34: warning: ignoring return value of ‘vk::Result vk::Device::waitForFences(uint32_t, const vk::Fence*, vk::Bool32, uint64_t, const Dispatch&) const [with Dispatch = vk::DispatchLoaderDynamic; uint32_t = unsigned int; vk::Bool32 = unsigned int; uint64_t = long unsigned int]’, declared with attribute ‘nodiscard’ [-Wunused-result]
216 | _dev->get_device().waitForFences(1, &_fence, true, MaxTimeout, _dev->get_dispatch());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/u/Desktop/VGE/cpp/vgelib/vgelib.hpp:11,
from /home/u/Desktop/VGE/cpp/vgelib/command.cpp:1:
/usr/include/vulkan/vulkan.hpp:88893:49: note: declared here
88893 | VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForFences( uint32_t fenceCount, const VULKAN_HPP_NAMESPACE::Fence* pFences, VULKAN_HPP_NAMESPACE::Bool32 waitAll, uint64_t timeout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
| ^~~~~~
from vge.
This seem to be related to the upstream issue KhronosGroup/Vulkan-Hpp#616
from vge.
Related Issues (9)
- proposal: add build tag to exclude example tools from `go install ./...`
- examples/basic/hello: panic: runtime error: cgo argument has Go pointer to Go pointer HOT 4
- proposal: remove deprecated tool packspv HOT 1
- examples/hello (and others) creates empty window, but no rendering HOT 17
- test: vge/vui/mintheme; gs.GetImage undefined (type *vglyph.GlyphSet has no field or method GetImage) HOT 2
- test: vge/vui; assets/glyphs/basicui/btn.png: no such file or directory HOT 1
- examples/cube: crash when calling Dispose on nil cache HOT 2
- static compile of libvgelib
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vge.