capi(d3d12): change the layout so that descriptor is first in libra_source_image_d3d12_t

This commit is contained in:
chyyran 2024-09-29 01:51:05 -04:00 committed by Ronny Chan
parent 33d95ac399
commit c526b7043a

View file

@ -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<ID3D12Resource>,
/// 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<ID3D12Resource>,
}
/// Direct3D 12 parameters for the output image.