Skip to content

Commit

Permalink
Fix missing extensions (#1063)
Browse files Browse the repository at this point in the history
Co-authored-by: Peter McNeeley <[email protected]>
  • Loading branch information
petermcneeleychromium and Peter McNeeley authored Dec 12, 2024
1 parent 1ec5e96 commit ed7c3a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion samples/config_helper_vulkan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ amber::Result ConfigHelperVulkan::CreateDeviceWithFeatures2(
pnext = &variable_pointers_feature_;
}
if (next_ptr != nullptr) {
*next_ptr = &variable_pointers_feature_.pNext;
*next_ptr = &variable_pointers_feature_;
}
next_ptr = &variable_pointers_feature_.pNext;
exts.push_back(VK_KHR_VARIABLE_POINTERS_EXTENSION_NAME);
Expand All @@ -1140,6 +1140,7 @@ amber::Result ConfigHelperVulkan::CreateDeviceWithFeatures2(
*next_ptr = &float16_int8_feature_;
}
next_ptr = &float16_int8_feature_.pNext;
exts.push_back(VK_KHR_SHADER_FLOAT16_INT8_EXTENSION_NAME);
}

if (supports_shader_8bit_storage_) {
Expand All @@ -1150,6 +1151,7 @@ amber::Result ConfigHelperVulkan::CreateDeviceWithFeatures2(
*next_ptr = &storage_8bit_feature_;
}
next_ptr = &storage_8bit_feature_.pNext;
exts.push_back(VK_KHR_8BIT_STORAGE_EXTENSION_NAME);
}

if (supports_shader_16bit_storage_) {
Expand Down Expand Up @@ -1202,6 +1204,7 @@ amber::Result ConfigHelperVulkan::CreateDeviceWithFeatures2(
*next_ptr = &buffer_device_address_feature_;
}
next_ptr = &buffer_device_address_feature_.pNext;
exts.push_back(VK_KHR_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME);
}

if (supports_ray_tracing_pipeline_) {
Expand Down

0 comments on commit ed7c3a5

Please sign in to comment.