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

get_image_format_properties uses stencil usage flags of 0, which is not allowed #153

Open
Silverlan opened this issue Sep 7, 2019 · 0 comments

Comments

@Silverlan
Copy link
Contributor

PhysicalDevice::get_image_format_properties sets the stencilUsage-member in this code block to 0:

if (m_extension_info_ptr->get_device_extension_info()->ext_separate_stencil_usage() )
{
    VkImageStencilUsageCreateInfoEXT create_info;

    create_info.pNext        = nullptr;
    create_info.stencilUsage = 0;
    create_info.sType        = VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO_EXT;

    image_stencil_usage_create_info_struct_id = input_struct_chainer.append_struct(create_info);
}

This is not allowed according to the specification and throws a validation error in the latest Vulkan SDK version:
https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkImageStencilUsageCreateInfoEXT-stencilUsage-requiredbitmask

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

No branches or pull requests

1 participant