-
Notifications
You must be signed in to change notification settings - Fork 70
Description
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 extendAmber::Parse()withbool validation=trueparameter)
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.