Skip to content

Commit e0c2bc7

Browse files
committed
Typo.
1 parent 8178ee0 commit e0c2bc7

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

crates/processing_cuda/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ fn resolve_texture(app: &mut App, entity: Entity) -> Result<(Texture, TextureFor
4646
if app.world().get::<Image>(entity).is_some() {
4747
let texture = gpu_image(app, entity)?.texture.clone();
4848
let p_image = app.world().get::<Image>(entity).unwrap();
49-
return Ok((texture, p_image.texture_format, p_image.size.width, p_image.size.height));
49+
return Ok((
50+
texture,
51+
p_image.texture_format,
52+
p_image.size.width,
53+
p_image.size.height,
54+
));
5055
}
5156
if let Ok(vt) = view_target(app, entity) {
5257
let texture = vt.main_texture().clone();

crates/processing_pyo3/src/cuda.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use processing::prelude::image::pixel_size;
22
use processing_cuda::{cuda_buffer, cuda_write_back, typestr_for_format};
33
use pyo3::{exceptions::PyRuntimeError, prelude::*, types::PyDict};
44

5-
/// Implements `__cuda_array_interface__ for zero-copy interop
5+
/// Implements `__cuda_array_interface__` for zero-copy interop
66
/// with PyTorch, CuPy, and other CUDA-aware Python libraries.
77
#[pyclass(unsendable)]
88
pub struct CudaImage {

crates/processing_render/src/material/custom.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,13 @@ impl ErasedRenderAsset for CustomMaterial {
403403
let bind_group_layout =
404404
BindGroupLayoutDescriptor::new("custom_material_bind_group", &layout_entries);
405405

406-
let bindings =
407-
reflection.create_bindings(3, &source_asset.shader, render_device, gpu_images, gpu_buffers);
406+
let bindings = reflection.create_bindings(
407+
3,
408+
&source_asset.shader,
409+
render_device,
410+
gpu_images,
411+
gpu_buffers,
412+
);
408413

409414
let unprepared = UnpreparedBindGroup {
410415
bindings: BindingResources(bindings),

0 commit comments

Comments
 (0)