vk-bootstrap/example/example_config.h.in
Charles Giessen 23dcdd59bf example: Add config file to locate shaders
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.
2021-04-16 10:30:04 -06:00

4 lines
130 B
C

#pragma once
#define EXAMPLE_SOURCE_DIRECTORY "${CMAKE_SOURCE_DIR}"
#define EXAMPLE_BUILD_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"