Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate struct members when generating on darwin #20

Closed
johanhenriksson opened this issue Mar 7, 2023 · 1 comment · Fixed by #41
Closed

Duplicate struct members when generating on darwin #20

johanhenriksson opened this issue Mar 7, 2023 · 1 comment · Fixed by #41

Comments

@johanhenriksson
Copy link

Trying to run the generation on macos now, having a few issues. Im using vk.xml version 1.3.242

  • struct.go line ~7950, duplicated code:
	var psl_pStages *_vkPipelineShaderStageCreateInfo
	if len(s.PStages) > 0 {
		sl_pStages := make([]_vkPipelineShaderStageCreateInfo, len(s.PStages))
		for i, v := range s.PStages {
			sl_pStages[i] = *(v.Vulkanize())
		}
		psl_pStages = &sl_pStages[0]
	}

related struct member pStages is also duplicated.

  • struct.go line ~20877, PipelineCacheCreateInfo has duplicate member InitialDataSize.

  • struct.go line ~22138, PipelineShaderStageCreateInfo has duplicate member PName

@bbredesen
Copy link
Owner

bbredesen commented Mar 10, 2023

Possible root cause is the new vulkansc API in 1.3.242, which duplicates some types and struct members with slightly different definitions. (If correct, then this becomes a general issue, and not related to generating on mac.)

bbredesen added a commit that referenced this issue Mar 31, 2023
@bbredesen bbredesen mentioned this issue Mar 31, 2023
@bbredesen bbredesen linked a pull request Mar 31, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants