Cube demo generate SPIR-V as part of demo project build.
This commit is contained in:
parent
baca9ca7cb
commit
f0ba3dea82
@ -226,6 +226,7 @@
|
|||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = A9B53B241C3AC0BE00ABC6F6 /* Build configuration list for PBXNativeTarget "Cube-macOS" */;
|
buildConfigurationList = A9B53B241C3AC0BE00ABC6F6 /* Build configuration list for PBXNativeTarget "Cube-macOS" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
|
A9BA29C5204F24D400EA6575 /* Generate SPIR-V shaders */,
|
||||||
A9B53B141C3AC0BE00ABC6F6 /* Resources */,
|
A9B53B141C3AC0BE00ABC6F6 /* Resources */,
|
||||||
A9B53B171C3AC0BE00ABC6F6 /* Sources */,
|
A9B53B171C3AC0BE00ABC6F6 /* Sources */,
|
||||||
A9B53B1B1C3AC0BE00ABC6F6 /* Frameworks */,
|
A9B53B1B1C3AC0BE00ABC6F6 /* Frameworks */,
|
||||||
@ -244,6 +245,7 @@
|
|||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = A9B53B401C3AC15200ABC6F6 /* Build configuration list for PBXNativeTarget "Cube-iOS" */;
|
buildConfigurationList = A9B53B401C3AC15200ABC6F6 /* Build configuration list for PBXNativeTarget "Cube-iOS" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
|
A9BA29C6204F298800EA6575 /* Generate SPIR-V shaders */,
|
||||||
A9B53B2E1C3AC15200ABC6F6 /* Resources */,
|
A9B53B2E1C3AC15200ABC6F6 /* Resources */,
|
||||||
A9B53B331C3AC15200ABC6F6 /* Sources */,
|
A9B53B331C3AC15200ABC6F6 /* Sources */,
|
||||||
A9B53B371C3AC15200ABC6F6 /* Frameworks */,
|
A9B53B371C3AC15200ABC6F6 /* Frameworks */,
|
||||||
@ -320,6 +322,37 @@
|
|||||||
};
|
};
|
||||||
/* End PBXResourcesBuildPhase section */
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXShellScriptBuildPhase section */
|
||||||
|
A9BA29C5204F24D400EA6575 /* Generate SPIR-V shaders */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
name = "Generate SPIR-V shaders";
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "set -e\n\n\"${PROJECT_DIR}/../../../MoltenVKShaderConverter/Tools/MoltenVKShaderConverter\" -gi -so -xs \"-\" -d \"${PROJECT_DIR}/../VulkanSamples/demos\"\n";
|
||||||
|
};
|
||||||
|
A9BA29C6204F298800EA6575 /* Generate SPIR-V shaders */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
name = "Generate SPIR-V shaders";
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "set -e\n\n\"${PROJECT_DIR}/../../../MoltenVKShaderConverter/Tools/MoltenVKShaderConverter\" -gi -so -xs \"-\" -d \"${PROJECT_DIR}/../VulkanSamples/demos\"\n";
|
||||||
|
};
|
||||||
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
A9B53B171C3AC0BE00ABC6F6 /* Sources */ = {
|
A9B53B171C3AC0BE00ABC6F6 /* Sources */ = {
|
||||||
isa = PBXSourcesBuildPhase;
|
isa = PBXSourcesBuildPhase;
|
||||||
|
@ -132,19 +132,13 @@ a modified fork of the *VulkanSamples* repository.
|
|||||||
To add the *VulkanSamples* repository to **MoltenVK**, open a *Terminal* session and
|
To add the *VulkanSamples* repository to **MoltenVK**, open a *Terminal* session and
|
||||||
perform the following command-line steps:
|
perform the following command-line steps:
|
||||||
|
|
||||||
1. If you used the `--recursive` option when cloning the `MoltenVK` repository, you should already
|
If you used the `--recursive` option when cloning the `MoltenVK` repository, you should already
|
||||||
have the `VulkanSamples` submodule, and you can skip to *Step 2* below. If you did **_not_**
|
have the `VulkanSamples` submodule. If you did **_not_** use the `--recursive` option when cloning
|
||||||
use the `--recursive` option when cloning the `MoltenVK` repository, retrieve the `VulkanSamples`
|
the `MoltenVK` repository, retrieve the `VulkanSamples` submodule into the `External` directory as
|
||||||
submodule into the `External` directory as follows, from within the `MoltenVK` repository directory:
|
follows, from within the `MoltenVK` repository directory:
|
||||||
|
|
||||||
git submodule update --init External/VulkanSamples
|
git submodule update --init External/VulkanSamples
|
||||||
|
|
||||||
2. In the `Externals` folder within the `MoltenVK` repository, build the spec and header files
|
|
||||||
as follows from the main directory of this `MoltenVK` repository:
|
|
||||||
|
|
||||||
cd External
|
|
||||||
./makeVulkanSamples
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="update_vulkan_samples"></a>
|
<a name="update_vulkan_samples"></a>
|
||||||
|
1
External/getLatestVulkanSamples
vendored
1
External/getLatestVulkanSamples
vendored
@ -9,4 +9,3 @@
|
|||||||
rm -rf VulkanSamples
|
rm -rf VulkanSamples
|
||||||
git clone https://github.com/brenwill/VulkanSamples.git
|
git clone https://github.com/brenwill/VulkanSamples.git
|
||||||
|
|
||||||
./makeVulkanSamples
|
|
||||||
|
2
External/makeAll
vendored
2
External/makeAll
vendored
@ -6,12 +6,10 @@
|
|||||||
# makeVulkanSpec
|
# makeVulkanSpec
|
||||||
# makeSPIRVTools
|
# makeSPIRVTools
|
||||||
# makeglslang
|
# makeglslang
|
||||||
# makeVulkanSamples
|
|
||||||
#
|
#
|
||||||
# macOS usage: ./makeAll
|
# macOS usage: ./makeAll
|
||||||
|
|
||||||
./makeVulkanSpec
|
./makeVulkanSpec
|
||||||
./makeSPIRVTools
|
./makeSPIRVTools
|
||||||
./makeglslang
|
./makeglslang
|
||||||
./makeVulkanSamples
|
|
||||||
|
|
||||||
|
11
External/makeVulkanSamples
vendored
11
External/makeVulkanSamples
vendored
@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
#
|
|
||||||
# Copyright (c) 2016-2018 The Brenwill Workshop Ltd.
|
|
||||||
#
|
|
||||||
# makeVulkanSamples - Configures VulkanSamples for use in demos.
|
|
||||||
#
|
|
||||||
# macOS usage: ./makeVulkanSpec
|
|
||||||
|
|
||||||
|
|
||||||
../Package/Latest/MoltenVKShaderConverter/Tools/MoltenVKShaderConverter -gi -so -xs "-" -d ./VulkanSamples/demos
|
|
||||||
|
|
@ -149,7 +149,6 @@
|
|||||||
A9B732A51FC9C588006721CB /* getLatestSPIRVCross */ = {isa = PBXFileReference; lastKnownFileType = text; path = getLatestSPIRVCross; sourceTree = "<group>"; };
|
A9B732A51FC9C588006721CB /* getLatestSPIRVCross */ = {isa = PBXFileReference; lastKnownFileType = text; path = getLatestSPIRVCross; sourceTree = "<group>"; };
|
||||||
A9B732A61FC9C588006721CB /* getLatestVulkanSpec */ = {isa = PBXFileReference; lastKnownFileType = text; path = getLatestVulkanSpec; sourceTree = "<group>"; };
|
A9B732A61FC9C588006721CB /* getLatestVulkanSpec */ = {isa = PBXFileReference; lastKnownFileType = text; path = getLatestVulkanSpec; sourceTree = "<group>"; };
|
||||||
A9B732A71FCA1D71006721CB /* getLatestAll */ = {isa = PBXFileReference; lastKnownFileType = text; path = getLatestAll; sourceTree = "<group>"; };
|
A9B732A71FCA1D71006721CB /* getLatestAll */ = {isa = PBXFileReference; lastKnownFileType = text; path = getLatestAll; sourceTree = "<group>"; };
|
||||||
A9CE6DAA204DF916005250D7 /* makeVulkanSamples */ = {isa = PBXFileReference; lastKnownFileType = text; path = makeVulkanSamples; sourceTree = "<group>"; };
|
|
||||||
A9CE6DAB204DF924005250D7 /* getLatestVulkanSamples */ = {isa = PBXFileReference; lastKnownFileType = text; path = getLatestVulkanSamples; sourceTree = "<group>"; };
|
A9CE6DAB204DF924005250D7 /* getLatestVulkanSamples */ = {isa = PBXFileReference; lastKnownFileType = text; path = getLatestVulkanSamples; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
@ -191,7 +190,6 @@
|
|||||||
A939A6FC1F547A12006ACA0C /* makeAll */,
|
A939A6FC1F547A12006ACA0C /* makeAll */,
|
||||||
A939A6FD1F547A12006ACA0C /* makeglslang */,
|
A939A6FD1F547A12006ACA0C /* makeglslang */,
|
||||||
A939A6FE1F547A12006ACA0C /* makeSPIRVTools */,
|
A939A6FE1F547A12006ACA0C /* makeSPIRVTools */,
|
||||||
A9CE6DAA204DF916005250D7 /* makeVulkanSamples */,
|
|
||||||
A939A6FF1F547A12006ACA0C /* makeVulkanSpec */,
|
A939A6FF1F547A12006ACA0C /* makeVulkanSpec */,
|
||||||
A9B732A71FCA1D71006721CB /* getLatestAll */,
|
A9B732A71FCA1D71006721CB /* getLatestAll */,
|
||||||
A9B732A31FC9C588006721CB /* getLatestglslang */,
|
A9B732A31FC9C588006721CB /* getLatestglslang */,
|
||||||
|
1
MoltenVKShaderConverter/Tools
Symbolic link
1
MoltenVKShaderConverter/Tools
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../Package/Latest/MoltenVKShaderConverter/Tools
|
Loading…
x
Reference in New Issue
Block a user