WIP: Vulkan: Workbench #107886

Closed
Jeroen Bakker wants to merge 88 commits from Jeroen-Bakker:vulkan-draw-manager-workbench into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 44548d3edf - Show all commits

View File

@ -697,6 +697,7 @@ static void convert(FLOAT4 &dst, const SRGBA8 &src)
dst.value = src.value.decode();
}
// TODO: These still have to be validated.
static void convert(FLOAT4 &dst, const R11F_G11F_B10F &src)
{
dst.value.r = float((src.value >> 21) & 0b11111111111) / (0b11111111111);
@ -704,6 +705,7 @@ static void convert(FLOAT4 &dst, const R11F_G11F_B10F &src)
dst.value.b = float((src.value) & 0b1111111111) / float(0b1111111111);
dst.value.a = 1.0f;
}
static void convert(R11F_G11F_B10F &dst, const FLOAT4 &src)
{
int32_t r = clamp_f(src.value.r, 0.0f, 1.0f) * 0b11111111111;