* Started updating ray tracing samples to KHR extension * Updated GLSL shaders to use GL_EXT_ray_tracing * Code cleanup, naming * Fix include directories to use Vulkan headers from repository instead of NDK for the Android build * Added new Android function pointers * Renamed basic ray tracing sample Added android build files * Remove unused batch file * Replaced remaining NV identifiers * Updating ray tracing shadow sample to KHR extension * Updated shaders to use KHR instead of NV extension Fixed shader bindings * Updating ray tracing reflections sample to KHR extension * Renamed ray tracing reflections sample * Renamed ray tracing shadows sample Added android build files * Removed no-longer used batch files for shader generation * Proper alignment for the shader binding table * Updated readme * Reworked shader group setup * Cleanup * Reworked shader group setup * Reworked shader group setup * Code cleanup
34 lines
952 B
CMake
34 lines
952 B
CMake
cmake_minimum_required(VERSION 3.4.1 FATAL_ERROR)
|
|
|
|
set(NAME raytracingbasic)
|
|
|
|
set(SRC_DIR ../../../examples/${NAME})
|
|
set(BASE_DIR ../../../base)
|
|
set(EXTERNAL_DIR ../../../external)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -DVK_USE_PLATFORM_ANDROID_KHR -DVK_NO_PROTOTYPES")
|
|
|
|
file(GLOB EXAMPLE_SRC "${SRC_DIR}/*.cpp")
|
|
|
|
add_library(native-lib SHARED ${EXAMPLE_SRC})
|
|
|
|
add_library(native-app-glue STATIC ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c)
|
|
|
|
add_subdirectory(../base ${CMAKE_SOURCE_DIR}/../base)
|
|
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate")
|
|
|
|
include_directories(${BASE_DIR})
|
|
include_directories(${EXTERNAL_DIR})
|
|
include_directories(${EXTERNAL_DIR}/glm)
|
|
include_directories(${EXTERNAL_DIR}/imgui)
|
|
include_directories(${ANDROID_NDK}/sources/android/native_app_glue)
|
|
|
|
target_link_libraries(
|
|
native-lib
|
|
native-app-glue
|
|
libbase
|
|
android
|
|
log
|
|
z
|
|
)
|