capi(vk): set output in libra_output_image_vk_t, not viewport
This commit is contained in:
parent
14abb0362b
commit
eaf939c861
|
@ -44,6 +44,10 @@ pub struct libra_output_image_vk_t {
|
||||||
pub handle: vk::Image,
|
pub handle: vk::Image,
|
||||||
/// The `VkFormat` of the output image.
|
/// The `VkFormat` of the output image.
|
||||||
pub format: vk::Format,
|
pub format: vk::Format,
|
||||||
|
/// The width of the output image.
|
||||||
|
pub width: u32,
|
||||||
|
/// The height of the output image.
|
||||||
|
pub height: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Handles required to instantiate vulkan
|
/// Handles required to instantiate vulkan
|
||||||
|
@ -268,7 +272,7 @@ extern_fn! {
|
||||||
let image: VulkanImage = image.into();
|
let image: VulkanImage = image.into();
|
||||||
let output = VulkanImage {
|
let output = VulkanImage {
|
||||||
image: out.handle,
|
image: out.handle,
|
||||||
size: Size::new(viewport.width, viewport.height),
|
size: Size::new(out.width, out.height),
|
||||||
format: out.format
|
format: out.format
|
||||||
};
|
};
|
||||||
let mvp = if mvp.is_null() {
|
let mvp = if mvp.is_null() {
|
||||||
|
|
Loading…
Reference in a new issue