Wgpu: Pipeline creation does some shader validation, ignoring wgpu::ShaderFlags::VALIDATION

Created on 23 Feb 2021  路  3Comments  路  Source: gfx-rs/wgpu

Description
During pipeline creation the call to check_stage does shader validation independently of the validation flag passed to create_shader_module. In particular, it checks for entry points in the shaders.

Hit in the context of https://github.com/gfx-rs/naga/issues/518

Repro steps
Don't have anything out-of-the-box runnable at the moment. May provider later if required.

question

All 3 comments

Are you providing the WGSL source or the SPV? One of the recent changes was force-enabling validation if you provide the WGSL, since otherwise we can't generate anything from it.

Source provided as SPV.
Will provide more details and do some investigation myself later today

Quite odd! I was sure I was seeing this with VALIDATION turned on, but today I'm trying again with latest wgpu master and it works fine. Must have messed something up and it was still running with VALIDATION on.
Going to reopen if necessary

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tuzz picture tuzz  路  4Comments

kvark picture kvark  路  4Comments

cloudhead picture cloudhead  路  4Comments

kvark picture kvark  路  5Comments

kvark picture kvark  路  4Comments