[][src]Macro vulkayes_core::const_queue_present

macro_rules! const_queue_present {
    (
		$(#[$attribute: meta])*
		pub fn $name: ident (
			&queue,
			$waits: ident: [&Semaphore; $count_waits: literal],
			$images: ident: [&SwapchainImage; $count_images: literal],
			result_for_all: bool
		) -> QueuePresentMultipleResult<[QueuePresentResult; _]>;
	) => { ... };
}

This macro is intended to substitute for const generics when transforming input arguments to the Swapchain::present function.

Usage:

const_queue_present!(
	pub fn present_one(
		&queue,
		waits: [&Semaphore; 1],
		images: [&SwapchainImage; 1],
		result_for_all: bool
	) -> QueuePresentMultipleResult<[QueuePresentResult; _]>;
);

this expands to something like the Queue::present_one