vk: Lower scratch dimension alignment to 256 to minimize wastage

This commit is contained in:
kd-11 2023-05-13 02:23:48 +03:00 committed by kd-11
parent 7d710cbf8c
commit b6cdf18165
1 changed files with 2 additions and 2 deletions

View File

@ -125,8 +125,8 @@ namespace vk
{
auto create_texture = [&]()
{
u32 new_width = utils::align(requested_width, 1024u);
u32 new_height = utils::align(requested_height, 1024u);
u32 new_width = utils::align(requested_width, 256u);
u32 new_height = utils::align(requested_height, 256u);
return new vk::image(*g_render_device, g_render_device->get_memory_mapping().device_local, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
VK_IMAGE_TYPE_2D, format, new_width, new_height, 1, 1, 1, VK_SAMPLE_COUNT_1_BIT, VK_IMAGE_LAYOUT_UNDEFINED,