Jump to content
Pixma

Problem with creating a Project for Vulkan experiments/samples

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 by Pixma

Share this post


Link to post
Share on other sites
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.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×