WIP: Vulkan: Workbench #107886
|
@ -1120,9 +1120,7 @@ GHOST_TSuccess GHOST_ContextVK::initializeDrawingContext()
|
||||||
/* According to the Vulkan specs, when `VK_KHR_portability_subset` is available it should be
|
/* According to the Vulkan specs, when `VK_KHR_portability_subset` is available it should be
|
||||||
* enabled. See
|
* enabled. See
|
||||||
* https://vulkan.lunarg.com/doc/view/1.2.198.1/mac/1.2-extensions/vkspec.html#VUID-VkDeviceCreateInfo-pProperties-04451*/
|
* https://vulkan.lunarg.com/doc/view/1.2.198.1/mac/1.2-extensions/vkspec.html#VUID-VkDeviceCreateInfo-pProperties-04451*/
|
||||||
if (device_extensions_support(vulkan_device->physical_device,
|
if (vulkan_device->extensions_support({VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME})) {
|
||||||
{VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME}))
|
|
||||||
{
|
|
||||||
extensions_device.push_back(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME);
|
extensions_device.push_back(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -654,7 +654,7 @@ template<typename T> void copy_color(T dst[4], const T *src)
|
||||||
|
|
||||||
VkClearColorValue to_vk_clear_color_value(const eGPUDataFormat format, const void *data)
|
VkClearColorValue to_vk_clear_color_value(const eGPUDataFormat format, const void *data)
|
||||||
{
|
{
|
||||||
VkClearColorValue result = {0.0f};
|
VkClearColorValue result = {{0.0f}};
|
||||||
switch (format) {
|
switch (format) {
|
||||||
case GPU_DATA_FLOAT: {
|
case GPU_DATA_FLOAT: {
|
||||||
const float *float_data = static_cast<const float *>(data);
|
const float *float_data = static_cast<const float *>(data);
|
||||||
|
|
|
@ -726,11 +726,11 @@ constexpr uint8_t SHIFT_R = 0;
|
||||||
static void convert(FLOAT3 &dst, const B10F_G11G_R11F &src)
|
static void convert(FLOAT3 &dst, const B10F_G11G_R11F &src)
|
||||||
{
|
{
|
||||||
dst.value.x = uint32_t_to_float(
|
dst.value.x = uint32_t_to_float(
|
||||||
convert_float_formats<FormatF32, FormatF11>((src.value >> SHIFT_R) && MASK_11_BITS));
|
convert_float_formats<FormatF32, FormatF11>((src.value >> SHIFT_R) & MASK_11_BITS));
|
||||||
dst.value.y = uint32_t_to_float(
|
dst.value.y = uint32_t_to_float(
|
||||||
convert_float_formats<FormatF32, FormatF11>((src.value >> SHIFT_G) && MASK_11_BITS));
|
convert_float_formats<FormatF32, FormatF11>((src.value >> SHIFT_G) & MASK_11_BITS));
|
||||||
dst.value.z = uint32_t_to_float(
|
dst.value.z = uint32_t_to_float(
|
||||||
convert_float_formats<FormatF32, FormatF10>((src.value >> SHIFT_B) && MASK_10_BITS));
|
convert_float_formats<FormatF32, FormatF10>((src.value >> SHIFT_B) & MASK_10_BITS));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void convert(B10F_G11G_R11F &dst, const FLOAT3 &src)
|
static void convert(B10F_G11G_R11F &dst, const FLOAT3 &src)
|
||||||
|
|
Loading…
Reference in New Issue