You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
hwcontext_vulkan: enable read/write without storage
BGR formats in Vulkan cannot be used in storage images, as the pixel labels on storage images are always ordered as RGB, and swizzling is not an option due to old hardware limitations. This means that you must always use an RGB format and manually swizzle when reading or writing to BGR images, or simply not use a format in the shader itself. This adds support for the latter.
This commit is contained in:
@ -244,6 +244,8 @@ static void device_features_copy_needed(VulkanDeviceFeatures *dst, VulkanDeviceF
|
||||
COPY_VAL(device.features.shaderInt64);
|
||||
COPY_VAL(device.features.shaderInt16);
|
||||
COPY_VAL(device.features.shaderFloat64);
|
||||
COPY_VAL(device.features.shaderStorageImageReadWithoutFormat);
|
||||
COPY_VAL(device.features.shaderStorageImageWriteWithoutFormat);
|
||||
|
||||
COPY_VAL(vulkan_1_1.samplerYcbcrConversion);
|
||||
COPY_VAL(vulkan_1_1.storagePushConstant16);
|
||||
|
Reference in New Issue
Block a user