1
0
Fork 0
forked from wry/wry

render: fix vulkan formats for pre-multiplied alpha

This commit is contained in:
Julian Orth 2024-02-15 01:01:29 +01:00
parent 30fb0f087f
commit 1a024babdf
3 changed files with 7 additions and 7 deletions

View file

@ -338,7 +338,7 @@ impl VulkanRenderer {
rai = rai
.clear_value(ClearValue {
color: ClearColorValue {
float32: clear.to_array_linear(),
float32: clear.to_array_srgb(),
},
})
.load_op(AttachmentLoadOp::CLEAR);
@ -413,7 +413,7 @@ impl VulkanRenderer {
pos: r.rect.to_vk(width, height),
};
let frag = FillFragPushConstants {
color: r.color.to_array_linear(),
color: r.color.to_array_srgb(),
};
unsafe {
dev.cmd_push_constants(