mirror of
https://github.com/blender/blender
synced 2026-10-25 03:07:01 +03:00
Local partitioned shader sorting has been used with Metal and oneAPI for a while now. Turns out CUDA/OptiX also benefit, so this change enables it there too. Note that there is no need to operate on shared memory with atomics in CUDA, so the implementation of atomic_store_local/atomic_load_local is kept extremely simple. Pull Request: https://projects.blender.org/blender/blender/pulls/163436
14 lines
469 B
C
14 lines
469 B
C
/* SPDX-FileCopyrightText: 2021-2022 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 */
|
|
}
|
|
; /* end of MetalKernelContext class definition */
|
|
|
|
/* Silently redirect into the MetalKernelContext instance */
|
|
/* NOTE: These macros will need maintaining as entry-points change. */
|
|
|
|
#undef kernel_data
|
|
#define kernel_data context.launch_params_metal.data
|
|
|
|
#undef kernel_integrator_state
|
|
#define kernel_integrator_state context.launch_params_metal.integrator_state
|