From c526b7043a171f0e8f15e211c878fc48dbcf68fd Mon Sep 17 00:00:00 2001 From: chyyran Date: Sun, 29 Sep 2024 01:51:05 -0400 Subject: [PATCH] capi(d3d12): change the layout so that descriptor is first in libra_source_image_d3d12_t --- librashader-capi/src/runtime/d3d12/filter_chain.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librashader-capi/src/runtime/d3d12/filter_chain.rs b/librashader-capi/src/runtime/d3d12/filter_chain.rs index adc0889..01251f4 100644 --- a/librashader-capi/src/runtime/d3d12/filter_chain.rs +++ b/librashader-capi/src/runtime/d3d12/filter_chain.rs @@ -23,10 +23,10 @@ use librashader::runtime::{FilterChainParameters, Size, Viewport}; /// Direct3D 12 parameters for the source image. #[repr(C)] pub struct libra_source_image_d3d12_t { - /// The resource containing the image. - pub resource: ManuallyDrop, /// A CPU descriptor handle to a shader resource view of the image. pub descriptor: D3D12_CPU_DESCRIPTOR_HANDLE, + /// The resource containing the image. + pub resource: ManuallyDrop, } /// Direct3D 12 parameters for the output image.