#Compute shader access globals.delta_time

4 messages · Page 1 of 1 (latest)

deft thorn
#

Is there a way to access the new globals.delta_time from a compute shader or do I need to create my own bind group?

For example if I want to use globals.delta_time in the game of life example I need to import #import bevy_pbr::mesh_view_bindings But it hasn't been bound.

ebon ravine
#

@sonic schooner might know the answer to this, as they did the work to get delta_time in globals

sonic schooner
#

I'm not super familiar with the compute shader pipeline, but yeah I'm pretty sure you'll need to create your own bindgroup

velvet pewter
#

Not sure if uniforms would work through AsBindGroup derive. But for storage buffers currently a separate impl AsBindGroup is needed. I did a pull req a few days ago, you can check the code for pointers: https://github.com/bevyengine/bevy/pull/6669/files