Don't use variable descriptor count
This commit is contained in:
@@ -50,7 +50,6 @@ skybox: Skybox,
|
||||
player: Player,
|
||||
font: Fonts.Id,
|
||||
|
||||
const max_textures = 1024;
|
||||
const max_point_lights = 1024;
|
||||
const max_directional_lights = 4;
|
||||
const chunk_descriptor_pool = 1024;
|
||||
@@ -138,9 +137,8 @@ pub fn init() !Game {
|
||||
.{
|
||||
.binding = 5,
|
||||
.descriptor_type = .sampled_image,
|
||||
.descriptor_count = max_textures,
|
||||
.descriptor_count = Textures.max_textures,
|
||||
.stage_flags = .{ .vertex_bit = true, .fragment_bit = true },
|
||||
.flags = .{ .variable_descriptor_count_bit = true }, // TODO Get rid of this AND somehow integrate with Textures module?
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -418,7 +416,7 @@ pub fn init() !Game {
|
||||
},
|
||||
.{
|
||||
.type = .sampled_image,
|
||||
.descriptor_count = max_textures,
|
||||
.descriptor_count = Textures.max_textures,
|
||||
},
|
||||
.{
|
||||
.type = .uniform_buffer,
|
||||
@@ -436,7 +434,6 @@ pub fn init() !Game {
|
||||
const global_descriptor_set = try engine.allocateDescriptorSet(.{
|
||||
.descriptor_pool = descriptor_pool,
|
||||
.set_layout = global_descriptor_set_layout,
|
||||
.variable_descriptor_count = @intCast(textures.array.items.len),
|
||||
});
|
||||
engine.setObjectName(global_descriptor_set, "DS Global", .{});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user