Skip to content

Commit

Permalink
Merge pull request #2118 from billhollings/upgrade-cube-demo
Browse files Browse the repository at this point in the history
Upgrade Cube demo to support Volk, as required by demo.
  • Loading branch information
billhollings authored Jan 7, 2024
2 parents 43f8888 + df8e090 commit e65575c
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 3,836 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ Package/
External/cereal
External/glslang
External/SPIRV-Cross
External/Volk
External/Vulkan-Headers
External/Vulkan-Portability
External/Vulkan-Tools
External/VulkanSamples

# Vulkan CTS testing artifacts
Scripts/TestResults.qpa
Expand Down
10 changes: 7 additions & 3 deletions Demos/Cube/Cube.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
A904B5331C9A08C90008C013 /* cube.vert */,
);
name = cube;
path = "../Vulkan-Tools/cube";
path = "../../External/Vulkan-Tools/cube";
sourceTree = "<group>";
};
A9B67B6A1C3AAE9800373FFD /* iOS */ = {
Expand Down Expand Up @@ -473,12 +473,14 @@
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
_DEBUG,
VK_NO_PROTOTYPES,
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
HEADER_SEARCH_PATHS = (
"\"$(SRCROOT)/include\"",
"\"$(SRCROOT)/include/cube\"",
"\"$(SRCROOT)/include/volk\"",
"\"$(SRCROOT)/../../MoltenVK/include\"",
);
OTHER_LDFLAGS = (
Expand All @@ -502,11 +504,13 @@
GCC_C_LANGUAGE_STANDARD = c99;
GCC_OPTIMIZATION_LEVEL = 2;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREPROCESSOR_DEFINITIONS = VK_NO_PROTOTYPES;
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
HEADER_SEARCH_PATHS = (
"\"$(SRCROOT)/include\"",
"\"$(SRCROOT)/include/cube\"",
"\"$(SRCROOT)/include/volk\"",
"\"$(SRCROOT)/../../MoltenVK/include\"",
);
OTHER_LDFLAGS = (
Expand Down
2 changes: 1 addition & 1 deletion Demos/Cube/iOS/DemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#import "DemoViewController.h"

#include <MoltenVK/mvk_vulkan.h>
#include "../../Vulkan-Tools/cube/cube.c"
#include "cube.c"


#pragma mark -
Expand Down
1 change: 1 addition & 0 deletions Demos/Cube/include/cube
41 changes: 0 additions & 41 deletions Demos/Cube/include/cube.frag.inc

This file was deleted.

50 changes: 0 additions & 50 deletions Demos/Cube/include/cube.vert.inc

This file was deleted.

Loading

0 comments on commit e65575c

Please sign in to comment.