mirror of
https://github.com/GarrettGunnell/Acerola-Compute.git
synced 2025-10-19 07:13:15 +00:00
Fix recompilation error due to freed uniform set
This commit is contained in:
parent
629b12b105
commit
999a4cfbde
1 changed files with 4 additions and 0 deletions
|
@ -112,6 +112,10 @@ func dispatch(kernel_index: int, x_groups: int, y_groups: int, z_groups: int) ->
|
|||
# Recreate kernel pipelines if shader was recompiled
|
||||
if shader_id != global_shader_id:
|
||||
shader_id = global_shader_id
|
||||
|
||||
# AcerolaShaderCompiler frees the compilations which then frees all attached resources including the old uniform set so it needs to be recreated
|
||||
uniform_set_gpu_id = rd.uniform_set_create(uniform_set_cache, global_shader_id, 0)
|
||||
|
||||
kernels.clear()
|
||||
for kernel in AcerolaShaderCompiler.get_compute_kernel_compilations(shader_name):
|
||||
kernels.push_back(rd.compute_pipeline_create(kernel))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue