Skip to content

Commit 448b1af

Browse files
committed
make vector type declaration consistent
1 parent 69b555f commit 448b1af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

en/03_Drawing_a_triangle/00_Setup/02_Validation_layers.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ is part of the c{pp} standard and means "not debug".
9393
constexpr uint32_t WIDTH = 800;
9494
constexpr uint32_t HEIGHT = 600;
9595
96-
const std::vector validationLayers = {
96+
const std::vector<const char*> validationLayers = {
9797
"VK_LAYER_KHRONOS_validation"
9898
};
9999
@@ -181,9 +181,9 @@ std::vector<const char*> getRequiredExtensions() {
181181
uint32_t glfwExtensionCount = 0;
182182
auto glfwExtensions = glfwGetRequiredInstanceExtensions(&glfwExtensionCount);
183183
184-
std::vector extensions(glfwExtensions, glfwExtensions + glfwExtensionCount);
184+
std::vector<const char*> extensions(glfwExtensions, glfwExtensions + glfwExtensionCount);
185185
if (enableValidationLayers) {
186-
extensions.push_back(vk::EXTDebugUtilsExtensionName );
186+
extensions.push_back(vk::EXTDebugUtilsExtensionName);
187187
}
188188
189189
return extensions;

0 commit comments

Comments
 (0)