mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-10 10:51:49 +00:00
23dcdd59bf
The example triangle now will have a absolute filepath to the shaders. This allows running the exe from directories other than the location of the shaders in the filesystem. Alternative solutions would be to copy/paste the shader binary into the source code.
4 lines
130 B
C
4 lines
130 B
C
#pragma once
|
|
|
|
#define EXAMPLE_SOURCE_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
#define EXAMPLE_BUILD_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" |