Added Android build files and screenshot for order independent transparency sample

This commit is contained in:
Sascha Willems 2020-08-21 10:12:55 +02:00
parent 82747df540
commit 2083a9839c
8 changed files with 198 additions and 4 deletions

View file

@ -0,0 +1,71 @@
apply plugin: 'com.android.application'
apply from: '../gradle/outputfilename.gradle'
android {
compileSdkVersion 26
defaultConfig {
applicationId "de.saschawillems.vulkanOrderIndependentTransparency"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a"
}
externalNativeBuild {
cmake {
cppFlags "-std=c++14"
arguments "-DANDROID_STL=c++_shared", '-DANDROID_TOOLCHAIN=clang'
}
}
}
sourceSets {
main.assets.srcDirs = ['assets']
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
}
task copyTask {
copy {
from '../../common/res/drawable'
into "src/main/res/drawable"
include 'icon.png'
}
copy {
from '../../../data/shaders/glsl/base'
into 'assets/shaders/glsl/base'
include '*.spv'
}
copy {
from '../../../data/shaders/glsl/oit'
into 'assets/shaders/glsl/oit'
include '*.*'
}
copy {
from '../../../data/models'
into 'assets/models'
include 'sphere.gltf'
}
copy {
from '../../../data/models'
into 'assets/models'
include 'cube.gltf'
}
}
preBuild.dependsOn copyTask