forked from mirror/vulkan-zig
examples: clean up extension_names
This commit is contained in:
@@ -58,11 +58,7 @@ pub const GraphicsContext = struct {
|
|||||||
|
|
||||||
var glfw_exts_count: u32 = 0;
|
var glfw_exts_count: u32 = 0;
|
||||||
const glfw_exts = c.glfwGetRequiredInstanceExtensions(&glfw_exts_count);
|
const glfw_exts = c.glfwGetRequiredInstanceExtensions(&glfw_exts_count);
|
||||||
|
try extension_names.appendSlice(@ptrCast(glfw_exts[0..glfw_exts_count]));
|
||||||
var i: usize = 0;
|
|
||||||
while (i < glfw_exts_count) : (i += 1) {
|
|
||||||
try extension_names.append(glfw_exts[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
const instance = try self.vkb.createInstance(&.{
|
const instance = try self.vkb.createInstance(&.{
|
||||||
.p_application_info = &.{
|
.p_application_info = &.{
|
||||||
|
|||||||
Reference in New Issue
Block a user