forked from vv/efemra
1
0
Fork 0
efemra/src/rendering/vulkan/settings.zig

23 lines
567 B
Zig

// Compile-time settings for Vulkan.
pub const app_name = "efemra";
pub const engine_name = "efemra";
pub const khronos_layer_on = true;
pub const assist_layer_on = true;
pub const messenger_on = true;
pub const rt_on = false;
pub const hdr_on = true;
// number of swapchain images
pub const max_swapchain_len = 3;
pub const desired_swapchain_len = 2;
// number of resources for dynamic buffers and images
pub const resource_sets = 2;
pub const cmds_per_queue = 64;
pub fn OnlyIf(comptime setting: bool, t: anytype) type {
return if (setting) t else void;
}