Skip to content

Commit 739bafa

Browse files
committed
Remove unnecessary extensions
Either not used or not necessary as we're on Vulkan 1.4
1 parent 3fdc366 commit 739bafa

32 files changed

+36
-133
lines changed

attachments/03_physical_device_selection.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ class HelloTriangleApplication
4848
vk::raii::PhysicalDevice physicalDevice = nullptr;
4949

5050
std::vector<const char *> requiredDeviceExtension = {
51-
vk::KHRSwapchainExtensionName,
52-
vk::KHRSpirv14ExtensionName,
53-
vk::KHRSynchronization2ExtensionName,
54-
vk::KHRCreateRenderpass2ExtensionName};
51+
vk::KHRSwapchainExtensionName};
5552

5653
void initWindow()
5754
{

attachments/04_logical_device.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ class HelloTriangleApplication
5252
vk::raii::Queue graphicsQueue = nullptr;
5353

5454
std::vector<const char *> requiredDeviceExtension = {
55-
vk::KHRSwapchainExtensionName,
56-
vk::KHRSpirv14ExtensionName,
57-
vk::KHRSynchronization2ExtensionName,
58-
vk::KHRCreateRenderpass2ExtensionName};
55+
vk::KHRSwapchainExtensionName};
5956

6057
void initWindow()
6158
{

attachments/05_window_surface.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ class HelloTriangleApplication
4949
vk::raii::Queue queue = nullptr;
5050

5151
std::vector<const char *> requiredDeviceExtension = {
52-
vk::KHRSwapchainExtensionName,
53-
vk::KHRSpirv14ExtensionName,
54-
vk::KHRSynchronization2ExtensionName,
55-
vk::KHRCreateRenderpass2ExtensionName};
52+
vk::KHRSwapchainExtensionName};
5653

5754
void initWindow()
5855
{

attachments/06_swap_chain_creation.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,7 @@ class HelloTriangleApplication
5656
std::vector<vk::raii::ImageView> swapChainImageViews;
5757

5858
std::vector<const char *> requiredDeviceExtension = {
59-
vk::KHRSwapchainExtensionName,
60-
vk::KHRSpirv14ExtensionName,
61-
vk::KHRSynchronization2ExtensionName,
62-
vk::KHRCreateRenderpass2ExtensionName};
59+
vk::KHRSwapchainExtensionName};
6360

6461
void initWindow()
6562
{

attachments/07_image_views.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,7 @@ class HelloTriangleApplication
5656
std::vector<vk::raii::ImageView> swapChainImageViews;
5757

5858
std::vector<const char *> requiredDeviceExtension = {
59-
vk::KHRSwapchainExtensionName,
60-
vk::KHRSpirv14ExtensionName,
61-
vk::KHRSynchronization2ExtensionName,
62-
vk::KHRCreateRenderpass2ExtensionName};
59+
vk::KHRSwapchainExtensionName};
6360

6461
void initWindow()
6562
{

attachments/08_graphics_pipeline.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,7 @@ class HelloTriangleApplication
5656
std::vector<vk::raii::ImageView> swapChainImageViews;
5757

5858
std::vector<const char *> requiredDeviceExtension = {
59-
vk::KHRSwapchainExtensionName,
60-
vk::KHRSpirv14ExtensionName,
61-
vk::KHRSynchronization2ExtensionName,
62-
vk::KHRCreateRenderpass2ExtensionName};
59+
vk::KHRSwapchainExtensionName};
6360

6461
void initWindow()
6562
{

attachments/09_shader_modules.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ class HelloTriangleApplication
5757
std::vector<vk::raii::ImageView> swapChainImageViews;
5858

5959
std::vector<const char *> requiredDeviceExtension = {
60-
vk::KHRSwapchainExtensionName,
61-
vk::KHRSpirv14ExtensionName,
62-
vk::KHRSynchronization2ExtensionName,
63-
vk::KHRCreateRenderpass2ExtensionName};
60+
vk::KHRSwapchainExtensionName};
6461

6562
void initWindow()
6663
{

attachments/10_fixed_functions.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ class HelloTriangleApplication
5959
vk::raii::PipelineLayout pipelineLayout = nullptr;
6060

6161
std::vector<const char *> requiredDeviceExtension = {
62-
vk::KHRSwapchainExtensionName,
63-
vk::KHRSpirv14ExtensionName,
64-
vk::KHRSynchronization2ExtensionName,
65-
vk::KHRCreateRenderpass2ExtensionName};
62+
vk::KHRSwapchainExtensionName};
6663

6764
void initWindow()
6865
{

attachments/12_graphics_pipeline_complete.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ class HelloTriangleApplication
6060
vk::raii::Pipeline graphicsPipeline = nullptr;
6161

6262
std::vector<const char *> requiredDeviceExtension = {
63-
vk::KHRSwapchainExtensionName,
64-
vk::KHRSpirv14ExtensionName,
65-
vk::KHRSynchronization2ExtensionName,
66-
vk::KHRCreateRenderpass2ExtensionName};
63+
vk::KHRSwapchainExtensionName};
6764

6865
void initWindow()
6966
{

attachments/14_command_buffers.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ class HelloTriangleApplication
6363
vk::raii::CommandBuffer commandBuffer = nullptr;
6464

6565
std::vector<const char *> requiredDeviceExtension = {
66-
vk::KHRSwapchainExtensionName,
67-
vk::KHRSpirv14ExtensionName,
68-
vk::KHRSynchronization2ExtensionName,
69-
vk::KHRCreateRenderpass2ExtensionName};
66+
vk::KHRSwapchainExtensionName};
7067

7168
void initWindow()
7269
{

0 commit comments

Comments
 (0)