2022-07-03 05:08:47 +00:00
|
|
|
// 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;
|
2022-07-06 08:57:21 +00:00
|
|
|
pub const hdr_on = true;
|
2022-07-06 04:23:50 +00:00
|
|
|
|
2022-07-08 07:46:55 +00:00
|
|
|
// 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;
|
|
|
|
|
2022-07-11 08:17:47 +00:00
|
|
|
pub fn OnlyIf(comptime setting: bool, t: anytype) type {
|
2022-07-06 04:23:50 +00:00
|
|
|
return if (setting) t else void;
|
|
|
|
}
|