Skip to content

math3d/VulkanCompute

Repository files navigation

English | 简体中文

Vulkan Compute C++ 示例

示例的VulkanCompute源代码,可以运行在Ubuntu和Windows环境(调整Makefile应该可以运行于Android,但是未经验证)。

代码的获取和编译

VulkanCompute源码的获得:

git clone https://github.com/math3d/VulkanCompute.git
git submodule init
git submodule update

VulkanCompute源码的编译-Ubuntu 18.04 (编译之前,需要先去https://www.lunarg.com/vulkan-sdk/ 安装Vulkan SDK):

cmake CMakeLists.txt
make

VulkanCompute源码的编译-Windows 10(编译之前,需要先去https://www.lunarg.com/vulkan-sdk/ 安装Vulkan SDK):

cmake -G "Visual Studio 15 2017 Win64"

用Visual Studio 打开项目VulkanComputeExamples.sln,进行编译。

运行

Add (Default input size w = 4, h = 8; Default work group size: wx = 1, wy = 1, wz =1):

add -w 128 -h 128 -wx 16 -wy 16

其他

Makefile部分基于SaschaWillems开源的示例程序修改而来.

Submodule information

git submodule add https://github.com/g-truc/glm external/glm external/glm
cd external/glm
git checkout -b 1ad55c5016339b83b7eec98c31007e0aee57d2bf

git submodule add https://github.com/KhronosGroup/KTX-Software external/ktx
cd  external/ktx
git checkout -b 726d14d02c95bb21ec9e43807751b491d295dd3c

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published