Pixma Posted January 8, 2019 Report Share Posted January 8, 2019 hi, I have a problem with creating a project for my Graphic Wrapper implementation? I created some Vulkan cpp/h files and adapter files. Now I want to create a Solution/Project where I can test these Vulkan functionality. To test the Vulkan Functionality, I want to create some triangles and polygons. I saw this is done with premake. But I dont't know how I can create an additional Project file in this solution for testing. greeting Pixma Quote Link to comment Share on other sites More sharing options...
vladislavbelov Posted January 8, 2019 Report Share Posted January 8, 2019 Hi, try to use existing projects, example of the "engine" solution: source_dirs = { "ps", "ps/scripting", "network/scripting", "ps/GameSetup", "ps/XML", "soundmanager", "soundmanager/data", "soundmanager/items", "soundmanager/scripting", "maths", "maths/scripting", "i18n", "i18n/scripting", "third_party/cppformat", } extern_libs = { "spidermonkey", "sdl", -- key definitions "libxml2", "opengl", "zlib", "boost", "enet", "libcurl", "tinygettext", "icu", "iconv", "libsodium", } if not _OPTIONS["without-audio"] then table.insert(extern_libs, "openal") table.insert(extern_libs, "vorbis") end setup_static_lib_project("engine", source_dirs, extern_libs, {}) Add your project near to these lines. Quote Link to comment Share on other sites More sharing options...
Pixma Posted January 8, 2019 Author Report Share Posted January 8, 2019 (edited) hmm ok, what do you think about the following idea? I create a folder samples inside the graphics project. There is a main function from where I can call the samples which I am creating. For example creating a Triangle, creating a triangle with shader, creating a mesh, ans so on. Finally with these main function, I make the graphics project as Startup Project. edit: hmm, I have noticed now, that this is not possible, because this is a library project. edit 2: ok, now I have another idea, to create this in the pyrogenesis project. So I append this project for command argument --sample in Debugging. And in the main function then I check for this argument. Edited January 8, 2019 by Pixma Quote Link to comment Share on other sites More sharing options...
vladislavbelov Posted January 9, 2019 Report Share Posted January 9, 2019 16 hours ago, Pixma said: hmm ok, what do you think about the following idea? You can do locally whatever you want to develop/test/understand the project If you want to add it to the game repo, I'm not sure, that it's needed. But some base stuff can be tested inside tests. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.