mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
refactor(dx12): lower list extraction for copies between textures and buffers
This commit is contained in:
parent
517018e9ae
commit
fd7530a011
@ -612,8 +612,9 @@ impl crate::CommandEncoder for super::CommandEncoder {
|
||||
) where
|
||||
T: Iterator<Item = crate::BufferTextureCopy>,
|
||||
{
|
||||
let list = self.list.as_ref().unwrap();
|
||||
for r in regions {
|
||||
let list = self.list.as_ref().unwrap();
|
||||
|
||||
let src_location = Direct3D12::D3D12_TEXTURE_COPY_LOCATION {
|
||||
pResource: unsafe { borrow_interface_temporarily(&src.resource) },
|
||||
Type: Direct3D12::D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT,
|
||||
@ -652,8 +653,9 @@ impl crate::CommandEncoder for super::CommandEncoder {
|
||||
) where
|
||||
T: Iterator<Item = crate::BufferTextureCopy>,
|
||||
{
|
||||
let list = self.list.as_ref().unwrap();
|
||||
for r in regions {
|
||||
let list = self.list.as_ref().unwrap();
|
||||
|
||||
let src_location = Direct3D12::D3D12_TEXTURE_COPY_LOCATION {
|
||||
pResource: unsafe { borrow_interface_temporarily(&src.resource) },
|
||||
Type: Direct3D12::D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user