Skip to content

Wrong/missing SType for some structures #60

@TillAlex

Description

@TillAlex

The validation layers throw lots of VKStructureType warnings at me when using different structs.

Here is an example:

vkCreateDescriptorSetLayout: pCreateInfo->pNext chain includes a structure with unexpected VkStructureType VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO; Allowed structures are [VkDescriptorSetLayoutBindingFlagsCreateInfo].

The unexpected type differs between calls and usually does not make any sense.

Looking at the code generate by SharpVk my guess is that for some structures SType is not set at all, but I am not sure if I am just missing the line where it's set.

One example is DescriptorSetLayoutBindingFlagsCreateInfo. While other MarshalTo methods set SType correctly, here SType is not set at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions