Skip to content

Instantly share code, notes, and snippets.

@i509VCB
Last active January 2, 2024 06:29
Show Gist options
  • Select an option

  • Save i509VCB/219ecfa91e39fb64db47d970b36caae6 to your computer and use it in GitHub Desktop.

Select an option

Save i509VCB/219ecfa91e39fb64db47d970b36caae6 to your computer and use it in GitHub Desktop.
// at top of vk_meta_copy_image
// ok
if (src_format == VK_FORMAT_R32_UINT && dst_format == VK_FORMAT_R32_SFLOAT) {
dst_format = VK_FORMAT_R32_UINT;
}
// but the same for R16 fails dEQP
if (src_format == VK_FORMAT_R16_UINT && dst_format == VK_FORMAT_R16_SFLOAT) {
dst_format = VK_FORMAT_R16_UINT;
}
// different format is a nope
if (src_format == VK_FORMAT_B8G8R8A8_UNORM && dst_format == VK_FORMAT_R16_SFLOAT) {
dst_format = VK_FORMAT_R16_SINT;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment