Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
755: Added independent blending to the list of required device features r=kvark a=Wumpf Currently, using different blend modes on multiple render targets on the vulkan backend results in this validation error: ``` [2020-06-27T19:51:47Z ERROR gfx_backend_vulkan] VALIDATION [VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (-884533293)] : Validation Error: [ VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 ] Object 0: handle = 0x2ea18313250, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xcb4717d3 | Invalid Pipeline CreateInfo: If independent blend feature not enabled, all elements of pAttachments must be identical. The Vulkan spec states: If the independent blending feature is not enabled, all elements of pAttachments must be identical (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605) object info: (type: DEVICE, hndl: 3204451480144) ``` This is caused by not requesting the independent blend feature from the device. Given how the wgpu/webgpu API looks like (it makes it very easy to use independent blending) and that there is 100% coverage of this feature on the Vulkan [feature database](https://vulkan.gpuinfo.org/listfeatures.php), I suppose this is a bug, and here's the trivial fix for it 😃 If this is not meant to be required I'd like to make it an optional feature. Tested manually in my personal project via wgpu-rs, using Vulkan backend. (on this [commit](Wumpf/blub@69b660a), uses locally changed gfx-rs/wgpu) Co-authored-by: Andreas Reich <r_andreas2@web.de>
- Loading branch information