Vulkan: Clearing Storage Buffers #105487

Merged
Jeroen Bakker merged 94 commits from Jeroen-Bakker/blender:vulkan-storage-buffer-clear into main 2023-03-17 13:48:50 +01:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit 0632abc9f3 - Show all commits

View File

@ -74,7 +74,6 @@ static void test_storage_buffer_clear_zero()
GPU_TEST(storage_buffer_clear_zero);
/* TODO: Make template.*/
template<eGPUTextureFormat TextureFormat> static void storage_buffer_clear_uniform()
{
GPUStorageBuf *ssbo = GPU_storagebuf_create_ex(

View File

@ -66,7 +66,7 @@ static bool can_use_fill_command(eGPUTextureFormat internal_format,
void *data)
{
int element_size = to_bytesize(internal_format);
int num_components = element_size / 8;
int num_components = element_size / 4;
if (is_uniform(Span<uint32_t>(static_cast<uint32_t *>(data), num_components))) {
return true;
}