Setting stencil reference per command requires marking it as dynamic state in the graphics pipeline which at least the vulkan backend doesn't do atm
So this needs to be addressed in gfx-rs first, was missing from https://github.com/gfx-rs/gfx/issues/1567 ?
@kvark yes, it appears what's supported so far for the vulkan backend and hal is:
Viewport, Scissor, Blend Constants and Depth Bounds
Comparing with vkspecs what would be missing from core so far is: line width, depth bias, stencil compare mask, stencil write mask and stencil ref
btw, depth bias is there
Created https://github.com/gfx-rs/gfx/issues/2905 for the rest
This is fixed by #282