Jump to content
Sign in to follow this  
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...