Sfoglia il codice sorgente

GPU: upload CPU-written sources before texture region copies

fuzeofficial 3 giorni fa
parent
commit
4f53d6f1f3
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      crates/victory-gpu/src/list.rs

+ 3 - 0
crates/victory-gpu/src/list.rs

@@ -538,6 +538,9 @@ extern "system" fn copy_texture_region(
             let Some(texture) = crate::resource::host_resource(src.resource) else {
                 return;
             };
+            if crate::texture::title_written(texture) {
+                crate::texture::upload(list, src.resource, texture);
+            }
             ensure_state(list, src.resource, COPY_SOURCE);
             from.resource = texture.as_raw().cast_const().cast();
         }