fix imgui backend image count
- should be the number of frames in flight
This commit is contained in:
@@ -219,8 +219,8 @@ pub fn main() !void {
|
|||||||
.Queue = @ptrFromInt(@intFromEnum(au.Q.handle)),
|
.Queue = @ptrFromInt(@intFromEnum(au.Q.handle)),
|
||||||
.DescriptorPool = @ptrFromInt(@intFromEnum(descriptorPool)),
|
.DescriptorPool = @ptrFromInt(@intFromEnum(descriptorPool)),
|
||||||
.RenderPass = null,
|
.RenderPass = null,
|
||||||
.MinImageCount = sc.cinfo.min_image_count,
|
.MinImageCount = 2,
|
||||||
.ImageCount = @intCast(sc.images.items.len),
|
.ImageCount = @intCast(flights.flights.len),
|
||||||
.PipelineRenderingCreateInfo = @bitCast(prci),
|
.PipelineRenderingCreateInfo = @bitCast(prci),
|
||||||
.MSAASamples = 0,
|
.MSAASamples = 0,
|
||||||
.PipelineCache = null,
|
.PipelineCache = null,
|
||||||
|
Reference in New Issue
Block a user