Skip to content

Validator might falsely fail requiring fragment shader #553

@archimedus

Description

@archimedus

Enforcement of validation introduced in #502 breaks certain tests with message

graphics pipeline requires a vertex shader

This validation is not always correct, due to Vulkan permits graphics pipelines without fragment shader (please see 1.1.106, Valid Usage section of VkGraphicsPipelineCreateInfo):

The stage member of one element of pStages must be either VK_SHADER_STAGE_VERTEX_BIT or VK_SHADER_STAGE_MESH_BIT_NV.

Method vkscript::Parser::SkipValidationForTest() cannot be used to alleviate the issue due to it is inaccessible from outside i.e. from class amber::Amber.

Please consider:

  • remove the validation check
  • make some alternative to SkipValidationForTest() available outside to give control over validation (for example extend Amber::Parse() with bool validation=true parameter)

As more long term solution it might be useful to create some amber file directives to control compilation/validation. If you find this idea useful please create separate issue, as I want this to be fixed quickly.

Thanks.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions