Rather then having to close the application and reloading the application entirely. We should try to have things be reloaded at runtime rather for more interactive workflows.
Way this Works
As for how this would work. environment_map.cppm, when setting the environment_map to a new filepath.
This should automatically trigger an event to changing the environment map, entirely.
One thing, is this should be done before the command buffer initiates the recording state. As this involves invalidating the vk::sample_image handle the environment_map uses to map out its resource to the shader.
Rather then having to close the application and reloading the application entirely. We should try to have things be reloaded at runtime rather for more interactive workflows.
Way this Works
As for how this would work.
environment_map.cppm, when setting the environment_map to a new filepath.This should automatically trigger an event to changing the environment map, entirely.
One thing, is this should be done before the command buffer initiates the recording state. As this involves invalidating the
vk::sample_imagehandle the environment_map uses to map out its resource to the shader.