forked from mirror/vulkan-zig
remove unused unused variables
This commit is contained in:
@@ -236,13 +236,6 @@ fn createCommandBuffers(
|
|||||||
const cmdbufs = try allocator.alloc(vk.CommandBuffer, framebuffers.len);
|
const cmdbufs = try allocator.alloc(vk.CommandBuffer, framebuffers.len);
|
||||||
errdefer allocator.free(cmdbufs);
|
errdefer allocator.free(cmdbufs);
|
||||||
|
|
||||||
_ = pipeline;
|
|
||||||
_ = render_pass;
|
|
||||||
_ = extent;
|
|
||||||
_ = buffer;
|
|
||||||
_ = pool;
|
|
||||||
_ = gc;
|
|
||||||
|
|
||||||
try gc.vkd.allocateCommandBuffers(gc.dev, &.{
|
try gc.vkd.allocateCommandBuffers(gc.dev, &.{
|
||||||
.command_pool = pool,
|
.command_pool = pool,
|
||||||
.level = .primary,
|
.level = .primary,
|
||||||
@@ -269,7 +262,6 @@ fn createCommandBuffers(
|
|||||||
};
|
};
|
||||||
|
|
||||||
for (cmdbufs) |cmdbuf, i| {
|
for (cmdbufs) |cmdbuf, i| {
|
||||||
_ = i;
|
|
||||||
try gc.vkd.beginCommandBuffer(cmdbuf, &.{
|
try gc.vkd.beginCommandBuffer(cmdbuf, &.{
|
||||||
.flags = .{},
|
.flags = .{},
|
||||||
.p_inheritance_info = null,
|
.p_inheritance_info = null,
|
||||||
|
|||||||
@@ -1052,7 +1052,7 @@ fn Renderer(comptime WriterType: type) type {
|
|||||||
\\ .Struct = .{{
|
\\ .Struct = .{{
|
||||||
\\ .layout = .Auto,
|
\\ .layout = .Auto,
|
||||||
\\ .fields = &fields,
|
\\ .fields = &fields,
|
||||||
\\ .decls = &[_]std.builtin.TypeInfo.Declaration{{}},
|
\\ .decls = &[_]std.builtin.Type.Declaration{{}},
|
||||||
\\ .is_tuple = false,
|
\\ .is_tuple = false,
|
||||||
\\ }},
|
\\ }},
|
||||||
\\ }});
|
\\ }});
|
||||||
|
|||||||
Reference in New Issue
Block a user