bevyengine / bevyengine/bevy

Can't pass a texture to a function when using bindless

Open
#21,740 0 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Bug I-Crash S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version and features

eb5979e742d5ebd4bd29a22e30e1724744a80295

## \[Optional\] Relevant system information

```
2025-11-02T02:10:43.604935Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux (NixOS 25.05)", kernel: "6.12.50", cpu: "Intel(R) Core(TM) i7-14700KF", core_count: "20", memory: "31.2 GiB" }
2025-11-02T02:10:43.676008Z INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 4060 Ti", vendor: 4318, device: 10243, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "570.153.02", backend: Vulkan }
```

## What you did

Created a shader function that takes in a `texture_2d` and passed to it a texture from a `binding_array`.

https://www.w3.org/TR/WGSL/#function-restriction

## What went wrong

Program crashes with no error of any kind (see https://github.com/bevyengine/bevy/pull/21714)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.